jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
|
| 21 Dec 2014 12:49 AM |
I used this script:
function Song1(playerWhoClicked) sound = script.Parent.Sound sound:Play() end
script.Parent.ClickDetector.MouseClick:connect(Song1)
but when I test it, no sound plays at all. anyone know whats wrong with it? |
|
|
| Report Abuse |
|
|
|
| 21 Dec 2014 02:02 AM |
try this
function Play() wait(1) -- VVVVV Make sure that is the name of ur sound sound = game.Workspace.Sound -- Put The Sound In Workspace and the script in workspace :P sound:Play() end script.Parent.ClickDetector.MouseButton1Down:connect(Play)
idk if it will work |
|
|
| Report Abuse |
|
|
|
| 21 Dec 2014 02:06 AM |
w0w m9 wait for the asset to load it wont work instantly lol
also the playerWhoClicked is not needed whatsoever
if problem still persists
here:
local sound = script.Parent.Sound script.Parent.ClickDetector.MouseClick:connect(function() sound:Play() end) |
|
|
| Report Abuse |
|
|
|
| 21 Dec 2014 02:06 AM |
WAITTTTTTTTTTTTTTTTTTTTTTT Error :P
do this one
function Play() wait(1) -------------- VVVVV Make sure that is the name of ur sound sound = game.Workspace.Sound -- Put The Sound In Workspace and the script in workspace :P sound:Play() end script.Parent.ClickDetector.MouseClick:connect(Play)
|
|
|
| Report Abuse |
|
|