Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Camera shake on touch for some time ?

How can I make script that shakes the player's screen after he touches a specific part for some time like 5 secconds ?

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.

1 comment

0

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

This discussion is preserved as it was. New answers, comments, and votes are closed.