Help with parenting character to ServerStorage

I’m trying to parent the player character inside of ServerStorage but it won’t work.

local ServerStorage = game:GetService("ServerStorage")

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		player.CharacterAdded:Wait() -- i tried this
		player.Character.Parent = ServerStorage
	end)
end)
1 Like

Is this on the client as the client can not use ServerStorage.

This is on the server in ServerScriptService.

And why are you putting the character in ServerStorage?

So I can store the character inside it when the game is over and parent it to workspace when the game starts.

You can teleport the character to a random spot far away from the main game or create a lobby where people spawn.

local ServerStorage = game:GetService("ServerStorage")

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Wait()
	player.Character.PrimaryPart.Anchored = true -- works
	player.Character.Parent = ServerStorage -- doesn't work
end)

I see, the network ownership is handled by the client. Try doing what I said.

you are just simply not able to parent a character to server storage, roblox will not allow it

I tried ReplicatedStorage and it still wouldn’t work.

I don’t have any Network Ownership scripts.

player characters can only exist in workspace you cant parent it to anything else

You don’t need that as setting it to the server will break the ControlModule.

I guess I will anchor the character.

Delete the character, then load character when you need to.(Works the same way)

If what you want is the player’s character model, you can use Character:Clone() and parent it to serverstorage
Apologies if this isnt what you want, maybe I am misunderstanding your question