How can I make script that shakes the player's screen after he touches a specific part for some time like 5 secconds ?
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.