local c = game.Players:GetChildren() local r = math.random(1,game.Players.NumPlayers) RANDOMPERSON = nil for i = 1,#c do if i == r then RANDOMPERSON = c[i] sword = game.Lighting.Sword5:Clone() sword.Parent = RANDOMPERSON.StarterGear RANDOMPERSON.Torso.CFrame = CFrame.new(game.Workspace.Juggernaut.Position) end end
I got an error saying
Torso is not a valid member of Player
Torso is a child of Characters not Players, Characters are found in the Workspace while Players are found in the Players child of game.
like Perci Commented RandomPerson.Character.Torso also, don't change the Torso Position! change the Character Position! Character:MoveTo() is the correct way to do it! cos the Torso is the connection part for all ur BodyParts and if it changes Position, that means ur Joints Break, and so, Die... so do it my Way!