ADVERTISEMENTREMOVE ADS
Game icon

godmode (all chapters)

Script preview thumbnail
Script Preview
ADVERTISEMENTREMOVE ADS
39 Lines • 1.84 KiB
Verified
Raw
getgenv().g = getgenv().g or {}
if getgenv().g.enabled then
getgenv().g.enabled = false
if getgenv().g.guiconn then getgenv().g.guiconn:Disconnect() end
if getgenv().g.diedconn then getgenv().g.diedconn:Disconnect() end
game.StarterGui:SetCore("SendNotification", {Title = "disabled", Text = "godmode is disabled!!!"})
return
end
getgenv().g.enabled = true
if not game:IsLoaded() then game.Loaded:Wait() end
game.StarterGui:SetCore("SendNotification", {Title = "godmodee", Text = "dont worry the script is working"})
getgenv().g.oldnamecall = getgenv().g.oldnamecall or hookmetamethod(game, "__namecall", function(self, ...)
if not getgenv().g.enabled then return getgenv().g.oldnamecall(self, ...) end
if getnamecallmethod() == "FireServer" and (self.Name:find("Death") or self.Name:find("Kill") or self.Name == "dead") then
game.StarterGui:SetCore("SendNotification", {Title = "info", Text = "saved you bud"})
return
end
if getnamecallmethod() == "Connect" and self.Parent and (self.Parent.Name:find("Death") or self.Parent.Name:find("Arm")) then
return {Disconnect = function() end}
end
return getgenv().g.oldnamecall(self, ...)
end)
getgenv().g.guiconn = game.Players.LocalPlayer.PlayerGui.ChildAdded:Connect(function(gui)
if not getgenv().g.enabled then return end
if gui.Name:lower():find("death") then gui:Destroy() end
end)
getgenv().g.diedconn = game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function()
if not getgenv().g.enabled then return end
game:GetService("StarterGui"):SetCore("DevConsoleVisible", true)
task.wait(0.5)
warn("hey heres the error from godmode script but theres no error caught")
game.StarterGui:SetCore("SendNotification", {Title = "huh???", Text = "what the hell no errors you should comment me"})
end)
ADVERTISEMENTREMOVE ADS

Comments

1 comment
to add a comment
ma

please report the errors

0
0
ADVERTISEMENTREMOVE ADS