Player = game.Players:GetChildren() Sword = game.Lighting.LinkedSword:Clone() while true do PlayerChosen = math.random (1, #Player) PlayerChosenBackpack = PlayerChosen.Backpack Sword.Parent = PlayerChosenBackpack end
A warning of using while loops:
Doing this:while true do --stuff to do end
will error.
To fix it just add a wait()