I’m trying to make it so when a player is walking and their feet hit the ground, the screen shakes and a sound plays. Does anyone know how to do this? I’m not a good scripter.
I would recommend using CameraShaker by @sleitnick to provide the Camera Effect (GitHub - Sleitnick/RbxCameraShaker: Camera shake effects for Roblox games), in terms of detection of movement you will have to use Humanoid Properties (Humanoid | Documentation - Roblox Creator Hub)
Example:
local Humanoid = ...
Humanoid:GetPropertyChangedSignal("MoveDrection"):Connect(function()
if Humanoid.MoveDirection.Magnitude > 0 then -- is the character moving?
-- your code
end
end)
1 Like