|
| 28 May 2014 11:10 PM |
function onClicked(playerWhoClicked) sound.SoundId = "http://www.roblox.com/asset/?id=154630272" sound.Looped = true sound.Parent = script.Parent sound:Play() end
script.Parent.ClickDetector.MouseClick:connect(onClicked) -
God help me with this one, it's pissing me off like a mad man. |
|
|
| Report Abuse |
|
|
|
| 28 May 2014 11:10 PM |
Whoops, didn't say my problem:
Line 2 is turning red. I have no IDEA what's happening. Help. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 28 May 2014 11:11 PM |
| You never told the script what "sound" was |
|
|
| Report Abuse |
|
|
Vuva
|
  |
| Joined: 22 Jan 2010 |
| Total Posts: 1102 |
|
|
| 28 May 2014 11:12 PM |
| sound=Instance.new("Sound") |
|
|
| Report Abuse |
|
|
|
| 28 May 2014 11:12 PM |
ERROR : attempt to access global object sounds, a nil value. Basically, that's what the error should look like. Sound isn't defined.
this is a signature: pcall(function() print([[apparently this is a string]]) end) |
|
|
| Report Abuse |
|
|
|
| 28 May 2014 11:14 PM |
| Thanks! I need to work on scripting.. |
|
|
| Report Abuse |
|
|