Putting All Players into A Folder?

I want to put all players/characters that spawned to be put into a folder inside workspace.

I did all like putting the character’s parent to said folder, but i think when I look at it from the explorer, the player’s model isnt moved? is it like a visual bug or something?

1 Like

Is this a server or local script, and could you give us the script?

1 Like
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Folder = workspace.MyHappyFolder -- Change it to your actual folder path 

local function characterAdded(Character)
	RunService.Stepped:Wait()
	
	Character.Parent = Folder
end

Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(characterAdded)
end)

This works for me

1 Like

What does the .Stepped:Wait() do?

allows any setup or loading of the character to complete properly

1 Like

Ah so I was missing the .Stepped, cheers.
so is stepped like a WaitForChild version for RunService?

u can also use this one,

-- put this in startercharacterscripts as a serverscript
local Character = script.Parent

game:GetService("RunService").Stepped:Wait()
Character.Parent = workspace.Live -- here is the folder name

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.