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

How to add Audio During Certain Scenes in a Cutscene?

I've seen crazyman32 do it in his game "Terra Novus"

I want to be able to add a sound during a cutscene scene.

The cutscene is the camera is assumed a car. The "car" is driving, then it slips and crashes. How do I add a car crash noise to that part of the scene?

Note: I do not know anything about the camera or scripts for it. So, I need someone to help me with this step by step!

3 answers

✓ Accepted answer

You'll have to create a 'Sound' object and play it. I recommend placing the Sound object inside PlayerGui so that only the local player can hear the sound.

Here's an example local script that you could place in the StarterGui that plays a sound:

--make sure this is in a LocalScript
local player = game.Players.LocalPlayer

local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset?id=132758219"
sound.Parent = player.PlayerGui

sound:Play()

You may have to add wait statements to time the sound at the right moment in the cutscene.

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