Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Refreshing a player without killing?

is there a way that I can refresh a player without killing them? This script changes their apperance but I made it so it kills them and re teleports back is there another way to do it?

textbox = script.Parent.TextBox
player = game.Players.LocalPlayer
script.Parent.Button.MouseButton1Click:connect(function()
if textbox.Text == "Loleris" then
player.CharacterAppearance = 'http://www.roblox.com/Asset/CharacterFetch.ashx?userId=2312310&placeId=0'
pos = Instance.new("Part", game.Workspace)
pos.CanCollide = false
pos.Transparency = 1
pos.CFrame = player.Character.Torso.CFrame * CFrame.new(0,-3,0)
player.Character.Humanoid.Health = 0
wait(12)
player.Character.Torso.CFrame = pos.CFrame * CFrame.new(0,3,0 )
pos:Remove()
end
end)

1 answer

✓ Accepted answer

Simply use the LoadCharacter method of Player. It literally loads the character (derp). It creates a new character for the player, removing the old one. Also clears the player's Backpack and PlayerGui.

player:LoadCharacter()

2 comments

0

Can only be accepted on backend server

0

?

This discussion is preserved as it was. New answers, comments, and votes are closed.