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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|