NukeVsCity

God mode for yba

Jun 9th, 2021 (edited)
20,630
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. _G.bypass = true -- make it to false in order to reset / Default : true
  2. _G.godmode = false -- make the bypass false too in order to disable godmode and reset
  3. _G.invisible = false -- make the bypass false too in order to disable invisble and reset hide in some place and make it true
  4.  
  5. local Hook
  6. Hook = hookfunction(getrawmetatable(game).__namecall, newcclosure(function(self, ...)
  7. local args = {...}
  8. if self.Name == "RemoteEvent" and _G.bypass == true then
  9. if args[1] == "Reset" then
  10. return wait(9e9)
  11. elseif _G.bypass == false then
  12. return Hook(self,...)
  13. end
  14. end
  15. return Hook(self, ...)
  16. end))
  17.  
  18. -- bypass must be enabled to get the godmode effect in order to disable godmode you need to reset
  19.  
  20. while _G.godmode do wait(1) pcall(function()
  21. if _G.godmode == false then return end
  22. game:GetService("Players").LocalPlayer.Character.BindableEvent:Destroy()
  23. end)
  24. end
  25.  
  26. if _G.invisible then
  27. if _G.invisible == false then return end
  28. if game:GetService("Players").LocalPlayer.Character.LowerTorso:FindFirstChild'Root' then
  29. game:GetService("Players").LocalPlayer.Character.LowerTorso.Root:Remove()
  30. end
  31. if game:GetService("Players").LocalPlayer.Character.UpperTorso:FindFirstChild'Waist' then
  32. game:GetService("Players").LocalPlayer.Character.UpperTorso.Waist:Remove()
  33. end
  34. end
Add Comment
Please, Sign In to add comment