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 » Club Houses » Clans & Guilds
Home Search
 

Re: scripting help pls

Previous Thread :: Next Thread 
Zexagonal is not online. Zexagonal
Joined: 28 Dec 2011
Total Posts: 2932
08 Apr 2015 10:24 PM
local player = game.Players.LocalPlayer

function Click(mouse)
script.Parent.Parent.Visible = false

game.Lighting{"CP-1"}:Clone().Parent = player.Backpack


end



script.Parent.MouseButton1Click:connect(Click)



[[ Goal: When the button is clicked, the weapon named CP-1 in the lighting should be cloned into the persons backpack. It isn't working? ]]


The Zentinel Legion | Et Erit Dominari Zentinels!
Report Abuse
waifupillow is not online. waifupillow
Joined: 21 Nov 2014
Total Posts: 3758
08 Apr 2015 10:26 PM
local player = game.Players.LocalPlayer

function Click(mouse)
script.Parent.Parent.Visible = false

local clone = game.Lighting{"CP-1"}:Clone()

clone.Parent = player.Backpack


end



script.Parent.MouseButton1Click:connect(Click)
Report Abuse
Osyris is not online. Osyris
Joined: 27 Oct 2007
Total Posts: 4321
08 Apr 2015 10:37 PM
local player = game.Players.LocalPlayer
local clickConnection

function Click(mouse)
script.Parent.Parent.Visible = false
game.Lighting["CP-1"]:Clone().Parent = player.Backpack
clickConnection:disconnect()
end

clickConnection = script.Parent.MouseButton1Click:connect(Click)
Report Abuse
Zexagonal is not online. Zexagonal
Joined: 28 Dec 2011
Total Posts: 2932
09 Apr 2015 07:34 PM
2 late guise.


The Zentinel Legion | Et Erit Dominari Zentinels!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Clans & Guilds
   
 
   
  • 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