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

Finding the speed of an object to play a sound?

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

1 answer

hey you! have you ever heard of enes? if you are in trouble, better call enes!

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