1

# What script and services do I use to make an object make a sound when moving at a certain speed?

2Loos 145
3 months ago

I'm making a roller coaster and everyone is requesting sounds. 2 parts. 1. How do I make a sound begin when the train hits a certain area. For example, the chain lift. If you've ever been to a theme park, and ridden a roller coaster, you should know the click click click noise. I want to play that sound when the train hits the chain lift area block. 2. Again, if you have been to a theme park, you may have heard the coaster roar when speeding down a section of track. If the coaster is going, let's say for example, 30 mph or faster that roar sets in. How do I do this? Sound ids Chainlift: 488060400 Roar Sound: 1487452733

0
As far as I know, I should add a block to create a sound zone around the chain lift, and use momentum to simulate the roar sounds. I just don't know how to measure the momentum or how to get the sound to play EXACTLY when the train hits the chain lift area. 2Loos 145 — 3mo

0

Make a part where in the chain zone with this script in it. So when the player or roller coaster hits it it plays the sound. Make sure the chain audio is in it, and make sure the part is as long as the chain goes, dont forget to make the part can-collide false and anchored;

script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then --this checks if its hit by a player
local sound = script.Parent.Sound --change this to the chain sound name
sound.MaxDistance = 40 --put how many studs long the block is right here
sound:Play()
end
end)


I dont know how to make the roar sound play sorry.

Hopefully this works. Good luck on your game :D

0
Mhyhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh ocelot chipmunk turtle mouse anteater owl turtle tiger donkey octopus platypus lemur R0BLOXVPN 0 — 3mo
print("ur mom")