Character not getting parented

Hey,

My character isn’t getting parented to the folder I want it to.

Any fix?

image

Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		
		--GameFolder
		local GameFolder = Instance.new("Folder", WorkspaceService)
		GameFolder.Name = "Game"
		
		--Modules
		local Modules = Instance.new("Folder", GameFolder)
		Modules.Name = "Modules"
		
		--Buildings
		local BuildingsFolder = Instance.new("Folder", Modules)
		BuildingsFolder.Name = "Buildings"
		
		--Players
		local PlayersFolder = Instance.new("Folder", Modules)
		PlayersFolder.Name = "Players"
		
		--Main Buildings
		local MainComponents = Instance.new("Folder", BuildingsFolder)
		MainComponents.Name = "MainBuildings"
		
		--Useless Buildings
		local UselessComponents = Instance.new("Folder", BuildingsFolder)
		UselessComponents.Name = "UselessComponents"
		
		--Executing
		script.Descendants.ServicesComponents.Parent = UselessComponents
		WorkspaceService.SpawnLocation.Parent = UselessComponents
		WorkspaceService.Baseplate.Parent = UselessComponents
		
		Character.Parent = PlayersFolder
		print("Done.")
		
	end)
end)

I’m pretty sure you’re not actually able to reparent the player’s character, have you looked at your output?

You are able to reparent the character I have done it before in one of my games

You can, in my other game it worked but now it doesn’t.

Other game code:

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		while true do
			char.Parent = game.Workspace.playerModule
			wait(5)
		end
	end)
end)

I guess I am mistaken then, my bad.

Nevermind, I’m sorry. I forgot to add a wait(1) at the script. My bad.