Advertisement
DrawingJhon

Camera shake

May 25th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. wait()
  2. local Player = game.Players.LocalPlayer
  3. local Char = Player.Character or Player.CharacterAdded:Wait()
  4. local Humanoid = Char.Humanoid
  5. local Enabled = true
  6. local Mouse = Player:GetMouse()
  7. local x = math.random(-100,100)/100
  8. local y = math.random(-100,100)/100
  9. local z = math.random(-100,100)/100
  10. Mouse.Button1Down:connect(function()
  11. if not Enabled then return end
  12. Enabled = false
  13. for i = 1, 20 do
  14. Humanoid.CameraOffset = Vector3.new(x,y,z)
  15. print(i)
  16. wait()
  17. end
  18. Humanoid.CameraOffset = Vector3.new(0,0,0)
  19. Enabled = true
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement