Advertisement
tntmastergriefer

God Mode (Infinite Yield)

Nov 3rd, 2024 (edited)
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.97 KB | Gaming | 0 0
  1. --[[
  2.     This script was from Infinite Yield, since I only wanted the god mode script.
  3.     Give all of the credit to the Infinite Yield creators.
  4. ]]
  5. local Players = game:GetService("Players")
  6.  
  7. local lp = Players.LocalPlayer
  8.  
  9. local cam = workspace.CurrentCamera
  10. local pos, char = cam.CFrame, lp.Character
  11. local hum = char and char.FindFirstChildWhichIsA(char, "Humanoid")
  12. local humClone = hum.Clone(hum)
  13. humClone.Parent, lp.Character = char, nil
  14. humClone.SetStateEnabled(humClone, 15, false)
  15. humClone.SetStateEnabled(humClone, 1, false)
  16. humClone.SetStateEnabled(humClone, 0, false)
  17. humClone.BreakJointsOnDeath, hum = true, hum.Destroy(hum)
  18.  
  19. lp.Character, cam.CameraSubject, cam.CFrame = char, humClone, wait() and pos
  20.  
  21. humClone.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  22.  
  23. local animScript = char.FindFirstChild(char, "Animate")
  24. if animScript then
  25.     animScript.Disabled = true
  26.     wait()
  27.     animScript.Disabled = false
  28. end
  29.  
  30. humClone.Health = humClone.MaxHealth
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement