Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I need help with this script please?

Player = game.Players:GetChildren()
Sword = game.Lighting.LinkedSword:Clone()
while true do
PlayerChosen = math.random (1, #Player)
PlayerChosenBackpack = PlayerChosen.Backpack
Sword.Parent = PlayerChosenBackpack 
end

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.