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 = ""
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 = ""
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.
Please, if you're trolling, stop. :>
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
please make an attempt, even a futile one, and tell us what went wrong, before just posting a problem