|
| 26 Sep 2017 02:46 AM |
Item = game.ReplicatedStorage.Item:GetChildren() local Item = Item[math.random(1,#Item)]:Clone() Item.Parent = game.Players.LocalPlayer.Backpack
^^^ is my code.
I want this to happen every time a character spawns. Is there any way to do that >_< |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Sep 2017 12:41 AM |
How would it look like exactly. I've tried
Item = game.ReplicatedStorage.Item:GetChildren()
game.Players.PlayerName.CharacterAdded:wait(1) local Item = Weapons[math.random(1,#Item)]:Clone() Item.Parent = game.Players.LocalPlayer.Backpack
but it doesnt seem to work :( sorry >.< |
|
|
| Report Abuse |
|
|
Kekulator
|
  |
| Joined: 20 Jul 2011 |
| Total Posts: 1833 |
|
|
| 30 Sep 2017 12:51 AM |
game.Players.PlayerAdded:Connect(function(nPlr)
nPlr.CharacterAdded:Connect(function(Character)
-- feeeeed meeeeeh
end)
end) |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2017 12:55 AM |
| thanks nut i realised im dumb and all i needed to do was put it in the starter pack not the starter gui XD |
|
|
| Report Abuse |
|
|