Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local c = game.Workspace.Camera
- repeat wait() until game.Players.LocalPlayer.Character
- local hed = game.Players.LocalPlayer.Character:WaitForChild("Head")
- local r = math.random
- local rad = math.rad
- function shake(times)
- c.CameraType = 'Scriptable'
- local Lv = CFrame.new(c.CFrame.lookVector)
- local amt = r(3,5)
- for i = 1, times do
- if hed.Parent.Humanoid.Health == 0 then break end
- c.CFrame = hed.CFrame * CFrame.new(0,0, 12)
- c.CFrame = c.CFrame * CFrame.Angles(rad(r(-r(), r())), rad(r(-r(), r())), rad(r(-amt, amt)))
- wait()
- end
- c.CameraType = 'Custom'
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement