Player = game.Players:GetChildren()
Sword = game.Lighting.LinkedSword:Clone()
while true do
PlayerChosen = math.random (1, #Player)
PlayerChosenBackpack = PlayerChosen.Backpack
Sword.Parent = PlayerChosenBackpack
end
COMMUNITY QUESTION
I need help with this script please?
1 answer
A warning of using while loops:
Doing this:while true do --stuff to do end will error.
To fix it just add a wait()
This discussion is preserved as it was. New answers, comments, and votes are closed.
