Advertisement
HenloMyDude

eaeaeaeaeaea local cam shake

Nov 30th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. script.Parent = owner.Character -- change this when u make it a curse
  2. local Character = script.Parent
  3. local Humanoid = Character.Humanoid
  4.  
  5. ArtificialHB = Instance.new("BindableEvent", script)
  6. ArtificialHB.Name = "ArtificialHB"
  7.  
  8. script:WaitForChild("ArtificialHB")
  9.  
  10. frame = 1/60
  11. tf = 0
  12. allowframeloss = false
  13. tossremainder = false
  14. lastframe = tick()
  15. script.ArtificialHB:Fire()
  16.  
  17. game:GetService("RunService").Heartbeat:connect(function(s, p)
  18. tf = tf + s
  19. if tf >= frame then
  20. if allowframeloss then
  21. ArtificialHB:Fire()
  22. lastframe = tick()
  23. else
  24. for i = 1, math.floor(tf / frame) do
  25. ArtificialHB:Fire()
  26. end
  27. lastframe = tick()
  28. end
  29. if tossremainder then
  30. tf = 0
  31. else
  32. tf = tf - frame * math.floor(tf / frame)
  33. end
  34. end
  35. end)
  36.  
  37. function Swait(NUMBER)
  38. if NUMBER == 0 or NUMBER == nil then
  39. ArtificialHB.Event:wait()
  40. else
  41. for i = 1, NUMBER do
  42. ArtificialHB.Event:wait()
  43. end
  44. end
  45. end
  46.  
  47. a = 1
  48. e = 5
  49.  
  50. while true do
  51. Swait()
  52. Humanoid.CameraOffset = Vector3.new(math.random(-a, a) / e, math.random(-a, a) / e, math.random(-a, a) / e)
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement