|
| 17 Dec 2014 09:53 PM |
Here is what I tried
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:wait() if game:GetService("GamePassService"):PlayerHasPass(player, PassID) then game.Lighting:FindFirstChild("SWORDNAMEHERE"):Clone().Parent = player.Backpack game.Lighting:FindFirstChild("SWORDNAMEHERE"):Clone().Parent = player.Backpack end end)
It works, but when you die, it doesn't come back. |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 17 Dec 2014 09:55 PM |
| Parent it into player.StarterGear |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
| |
|
|
| 17 Dec 2014 10:01 PM |
| Do you suppose you know why it makes two of them instead of one? |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 17 Dec 2014 10:03 PM |
Your code makes two of them because you have two lines that clone it:P
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:wait() if game:GetService("GamePassService"):PlayerHasPass(player, PassID) then game.Lighting:FindFirstChild("SWORDNAMEHERE"):Clone().Parent = player.StarterGear end end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Dec 2014 10:04 PM |
instead of that solution I did this
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:wait() if game:GetService("GamePassService"):PlayerHasPass(player, PassID) then game.Lighting:FindFirstChild("SWORDNAMEHERE"):Clone().Parent = player.Backpack game.Lighting:FindFirstChild("SWORDNAMEHERE"):Clone().Parent = player.StarterGear end end) |
|
|
| Report Abuse |
|
|