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
 

Re: Can you help me?

Previous Thread :: Next Thread 
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
27 Jul 2011 08:48 AM
item = game.Lighting.['iPod Nano']:Clone() --I forgot how to do this
player = script.Parent.Parent.Parent.Parent.Parent
function onClicked()
item.Parent = player.Backpack
end
script.Parent.MouseButton1Down:connect(onClicked)
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
27 Jul 2011 08:52 AM
bump
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
27 Jul 2011 08:56 AM
Is this for a GUI or a ClickDetector? Also, where is the script? And how are you referencing which player clicked it?
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
27 Jul 2011 08:59 AM
That's all fine its the first line I don't get...where it says:
item = game.Lighting.['iPod Nano']:Clone()
I didn't do it right can someone fix it?
Report Abuse
nike6330 is not online. nike6330
Joined: 11 Feb 2009
Total Posts: 154
27 Jul 2011 09:01 AM
I quess you dont need "." before [
Report Abuse
xvgigakid is not online. xvgigakid
Joined: 22 Jun 2008
Total Posts: 4407
27 Jul 2011 09:01 AM
item = game.Lighting['iPod Nano']:Clone()

The '.' after lightning has to be removed. Although im not veyr familiar with this statement I ussualy use thiss technique.

item = game.Lighting:findFirstChild("iPod Nano"):Clone()

Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
27 Jul 2011 09:01 AM
Oh! That's what I forgot! Thanks.
Report Abuse
Actoz is not online. Actoz
Joined: 28 Apr 2011
Total Posts: 2745
27 Jul 2011 09:04 AM
item = game.Lighting["iPod Nano"]:Clone()
Report Abuse
BIGBUCKS999 is not online. BIGBUCKS999
Joined: 26 Feb 2010
Total Posts: 6524
27 Jul 2011 09:07 AM
It should just be like this:

item = game.Lighting.["iPod Nano"]:Clone() --I forgot how to do this
player = script.Parent.Parent.Parent.Parent.Parent
function onClicked()
item.Parent = player.Backpack
end
script.Parent.MouseButton1Down:connect(onClicked)
-------------------------
item = game.Lighting.["iPod Nano"]:Clone() --I forgot how to do this
Your simple error was just the ['iPod Nano'] ^
I make simple errors all the time xD
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
27 Jul 2011 09:11 AM
@BIGBUCKS

IKR??!!
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