Refreshing Character

  1. What do you want to achieve? I want it so my character refreshes without reseting the camera and keeping the current location of the player so it doesn’t go back to spawn

  2. What is the issue? I don’t know how to do it

  3. What solutions have you tried so far? I looked on the dev forum

game.Players.PlayerAdded:Connect(function(plr)
	while true do
		plr:LoadCharacter()
		wait(0.1)
	end
end)

i know it’s not the best but i don’t know how i would do it otherwise

3 Likes

You can set the position of the character after refreshing your player.

do you have any sollutions for the camera?

What do you mean by refreshing the character without resetting the camera?

Well, that’s related to you spamming the LoadCharacter function, may I ask what you’re trying to achieve? Is it teleporting the player back to where they died?

Yeah i want it so when they die they are on the same place they died.

I’m basically making a game that automatically refreshes the character so the players outfit updates immediately

I’ll make a script for this rq.

1 Like

The only way I can think of is to cache the player’s position and then call :LoadCharacter(), and after they respawn and are teleported to a spawn point, you would just move them back to whatever cache you had stored.

This is probably going to be annoying to do without a custom spawn system.

Like save the players position in a variable?

Yes, but you can actually use:

RespawnLocation

Might make it easier.

EDIT: Nvm you can only set it to a spawn instance.

Just save their location when they die and on CharacterAdded teleport them there

That’s exactly what i tried before but i don’t know how to make it work

You can achieve this with GetHumanoidDescriptionFromUserId and then just apply the newest description to the humanoid

local desc = game.Players:GetHumanoidDescriptionFromUserId(plr.UserId)

local character = plr.Character

if character then
  character.Humanoid:ApplyDescription(desc)
end
2 Likes

This will basically show their newest avatar without touching anything else.

What do you mean? That’s not enough info for anyone to help debug lol

It’s fixed, thanks for the help everyone

1 Like

Oh, they marked this as a solution. I’m not really sure what they were asking for then considering they were saying stuff about positions lol

1 Like

No i know but i explained it bad i’m sorry for that but this is exactly what i wanted to happen