Refresh player without respawning

I’d like to figure out how to refresh a player so that their clothes reset but without tping them back to the spawn. I’ve tried LoadCharacter however that brings them to spawn, and I wasn’t able to find any other way online.

4 Likes

How do you want them to be refreshed? Like a admin command?

1 Like

You would just do LoadCharacter, but instead save the spot where they last were, and then move them back to that spot.

2 Likes

yeah. this method is the easiest that comes to mind

What you need to do is save the CFrame of the HumanoidRootPart, use LoadCharacter, then set the HumanoidRootPart’s CFrame to what it was before the refresh.

local cframe = character.HumanoidRootPart.CFrame
player:LoadCharacter()
player.Character.HumanoidRootPart.CFrame = cframe

Edit: ‘player.Character’ is necessary at the end so errors don’t occur
.

Updated 2024 code for people stumbling upon this:

local cframe = char.PrimaryPart.CFrame
plyr:LoadCharacter()
repeat task.wait() until plyr.Character
plyr.Character:PivotTo(cframe)
26 Likes