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

How do i make it so music plays when i execute this script?

so in the script below, I have a phone that uses a keypad script, and it want it to play a sound if it senses that the models named "9" "1" AND "1" have been pressed. any help please?!

Code = "911"
Input = ""

1 comment

0

please make an attempt, even a futile one, and tell us what went wrong, before just posting a problem

1 answer

✓ Accepted answer

Sure thing of course. This server script / global script goes into your keypad keys.

Ready? Let's do it...

click = Instance.New("Click Detector")
click.Parent = script.Parent
click.Name = "press"

script.Parent.press.MouseClick:Connect(function()
if (script.Parent.Name == "1") or (script.Parent.Name == "9" then
game.ServerStorage.Music:Play() end

I'm apologizing for this head on, I will fix this and figure this out together. We're sort of a team now.

1 comment

0

Please, if you're trolling, stop. :>

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