I am making a roller coaster train, and I am trying to make it so that when the speed is going fast enough, it plays a whooshing sound on a part, but my code doesn't seem to work (I am terrible at this stuff so it is probably obvious to other people what I'm doing wrong)
local speed = script.Parent.Velocity.Magnitude
while true do
if speed >=30 then
script.Parent.Sound:Play()
wait(1)
end
end
