ADVERTISEMENTREMOVE ADS
anti reduce energy
8,917 views
Script Preview
Description
made by l0stveil
execute again to stop also if you stop it will reduce two energy
Tested with
ADVERTISEMENTREMOVE ADS
21 Lines • 1.21 KiB
Verified
if getgenv().energyhook then
hookmetamethod(game, "__namecall", getgenv().energyhook)
getgenv().energyhook = nil
game:GetService("ReplicatedStorage").Game.Consume:InvokeServer("Check")
game:GetService("ReplicatedStorage").Game.Consume:InvokeServer("Check")
game:GetService("StarterGui"):SetCore("SendNotification", {Title = "noo", Text = "script is stopped :(", Duration = 6})
else
getgenv().energyhook = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
if getnamecallmethod() == "InvokeServer" and self.Name == "Consume" then
return
end
if getnamecallmethod() == "InvokeServer" and self.Name == "GetEnergy" then
if (function(...) return ... end)(getgenv().energyhook(self, ...)) <= 0 then
return (function(...) return select(2, ...) end)(getgenv().energyhook(self, ...)), (function(...) return select(2, ...) end)(getgenv().energyhook(self, ...))
end
return getgenv().energyhook(self, ...)
end
return getgenv().energyhook(self, ...)
end))
game:GetService("StarterGui"):SetCore("SendNotification", {Title = "ok", Text = "yay script working", Duration = 6})
end
ADVERTISEMENTREMOVE ADS
ADVERTISEMENTREMOVE ADS





Comments
i can add auto allow humans if yall want