|
| 29 Dec 2014 08:18 PM |
player = game.Players.LocalPlayer script.Parent.ClickDetector.MouseClick:connect(function() local torch = game.Lighting.Tool:Clone() torch.Parent = player.Backpack end)
does not work and theres no output. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
|
| 29 Dec 2014 08:44 PM |
| Torch is not added to player's inventory. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 29 Dec 2014 09:00 PM |
script.Parent.ClickDetector.MouseClick:connect(function(player) local torch = game.Lighting.Tool:Clone() torch.Parent = player.Backpack end) |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2014 09:01 PM |
and it can be a normal script
localscripts can only work when in the player
the clickdetecter returns the player who clicked it |
|
|
| Report Abuse |
|
|