|
May anyone help me with this? It is going into a project that im trying to make.
Thank you. |
|
|
-- Put this inside the button that you want to be clicked
script.Parent.MouseButton1Down:connect(function(clicked)
local sound = Instance.new("Sound",script.Parent)
sound.SoundId = ""
sound:play()
wait(5)
sound:Destroy()
end) |
|
|
|
|
Did you put it the sound id? |
|
|
Did you supply a valid asset ID for the sound?
Is this script in a TextButton or ImageButton?
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::] |
|
|
|
Yes, I put it with the sound ID..
The sound - http://www.roblox.com/asset/?id=138089340 |
|
|
And indeed it is a textbutton. |
|
|
|
I just tested it, it works for me :3 |
|
|
|
Is your volume up? :P
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::] |
|
|
LOL I forgot to add the Sound Object to the TextButton....
I feel like an idiot now...
Thank you guys for the work! :D |
|
|