Advertisement
TheDutchSoul

S.P.T.S God mode shield

Apr 25th, 2021
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. stopQuest = true;
  2.  
  3. function NoKill()
  4. local Character = game:GetService'Players'.LocalPlayer.Character
  5. local mt = getrawmetatable(game)
  6. local OldIndex = mt.__index
  7. local OldNameCall = mt.__namecall
  8.  
  9. setreadonly(mt, false)
  10.  
  11. mt.__namecall = newcclosure(function(Self,...)
  12. local args = {...}
  13. local NameCallMethod = getnamecallmethod()
  14. if not checkcaller() and Self == Character and NameCallMethod == "BreakJoints" then
  15. return nil
  16. end
  17. return OldNameCall(Self,...)
  18.  
  19. end)
  20.  
  21. setreadonly(mt, true)
  22. end
  23.  
  24. function fixCam()
  25. local CurrentCamera = workspace.CurrentCamera;
  26. CurrentCamera.CameraSubject = game.Players['LocalPlayer'].Character.Humanoid
  27. CurrentCamera.CameraType = Enum.CameraType.Custom
  28. end
  29.  
  30. function SetSpeed(speed)
  31. local isSpeed = assert(tonumber(speed), 'Must be a number')
  32. game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(speed)
  33. end
  34.  
  35. function CanAttack()
  36. local MainScript = game:GetService("Players").LocalPlayer.PlayerScripts.MainScript
  37.  
  38. while stopQuest do
  39. wait(0.01)
  40. getsenv(MainScript).TalkingOnQuest = false;
  41. end
  42. end
  43.  
  44. NoKill()
  45. fixCam()
  46. CanAttack()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement