How can I make script that shakes the player's screen after he touches a specific part for some time like 5 secconds ?
COMMUNITY QUESTION
Camera shake on touch for some time ?
1 answer
This should work
local speed = 1 --speed of shaking
for i = 1, (30*speed) do
local x = math.random(-100,100)/100
local y = math.random(-100,100)/100
local z = math.random(-100,100)/100
game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(x,y,z)
wait(1*10^(speed*(-1))
end
something like that, the math is probably wrong.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I meant after he touches a specific block.. But thanks anyway