How To Save A Character When Teleported to a different server?

Are you manually resetting the character? If so where and what’s the code look like?

yes

game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(plr,data)



local humanoid_Description = Instance.new("HumanoidDescription")

humanoid_Description.Name = "HumanoidDescription"

humanoid_Description.Parent = game.Workspace

humanoid_Description.HairAccessory = data["HairAccessory"]

humanoid_Description.Face = data["Face"]

humanoid_Description.GraphicTShirt = data["TShirt"]

plr:LoadCharacterWithHumanoidDescription(workspace.HumanoidDescription)



end)

How many times does the remote need to be fired, because ultimately I personally feel like you only need it once.

it only fires once but i think when the Character loads it refires the event im pretty sure

local PlayerData = {}

game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(plr,data)
    if not PlayerData[plr] then
		PlayerData[plr] = data
		local humanoid_Description = Instance.new("HumanoidDescription")
		humanoid_Description.Name = "HumanoidDescription"
		humanoid_Description.Parent = game.Workspace
		humanoid_Description.HairAccessory = data["HairAccessory"]
		humanoid_Description.Face = data["Face"]
		humanoid_Description.GraphicTShirt = data["TShirt"]
		plr:LoadCharacterWithHumanoidDescription(workspace.HumanoidDescription)
	end
end)
1 Like

StarterGui

getting 30 characters

and the server script is being stored on server script service just letting you know

Check the edit and see if that helps any. Also I know it might not mean much right now, but I recommend parenting objects after you change their properties as it takes less processing power to change at that moment.

alright im testing it right now

Doesn’t teleport data have to be retrieved via a local script in ReplicatedFirst? or has this changed now?

ReplicatedFirst would be an ideal place for it, but apparently it worked for him in StarterGui in the first place so I have no clue.

it worked perfectly and fast! thanks again it really means a lot

No problemo my friend.
Adding characters :slight_smile:

1 Like