datdude3
|
  |
| Joined: 23 Apr 2010 |
| Total Posts: 577 |
|
|
| 22 Feb 2014 11:37 AM |
I'm using it so if you click the GUI it gives you a weapon from lighting.
game.Workspace.Players.PlayerAdded:connect(function(player) end)
Lighting = game.GetService("Lighting") function onClicked() if onClicked then game.Workspace.Lighting.Dagger:clone() = game.Workspace.player.Backpack end end script.Parent.MouseButton1Click:connect(onClicked) |
|
|
| Report Abuse |
|
|
truefire2
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 5330 |
|
|
| 22 Feb 2014 11:40 AM |
What is the playeradded function for? You've done the structure wrong.
Lighting = game.Lighting
script.Parent.MouseButton1Down:connect(function() -- Anonymous function Lighting.Dagger:Clone().Parent = game.Players.LocalPlayer.Backpack -- Clones a dagger from the game lighting into player backpack. end) |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2014 11:40 AM |
| game.Workspace.Lighting.Dagger:clone().Parent = game.Workspace.player.Backpack |
|
|
| Report Abuse |
|
|
datdude3
|
  |
| Joined: 23 Apr 2010 |
| Total Posts: 577 |
|
|
| 22 Feb 2014 11:42 AM |
| Thank you guys so much! I really need help on my scripting xD |
|
|
| Report Abuse |
|
|