generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Needing help with a script:

Previous Thread :: Next Thread 
MarioLuigi35 is not online. MarioLuigi35
Joined: 23 May 2010
Total Posts: 8584
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
MarioLuigi35 is not online. MarioLuigi35
Joined: 23 May 2010
Total Posts: 8584
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 is not online. 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 is not online. Vuva
Joined: 22 Jan 2010
Total Posts: 1102
28 May 2014 11:12 PM
sound=Instance.new("Sound")
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
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
MarioLuigi35 is not online. MarioLuigi35
Joined: 23 May 2010
Total Posts: 8584
28 May 2014 11:14 PM
Thanks! I need to work on scripting..
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image