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

How would I set the custom character back to the original character?

I am pretty trash when it comes to custom characters, my problem is trying to restore the original character. Here is the code I tried to create:

if game.Players.LocalPlayer.Name == "greatneil80" then
	game.StarterPlayer.StarterCharacter:Destroy()
	game.Players.LocalPlayer.Character.Humanoid.Health = 0
	game.Players.LocalPlayer.CharacterAppearance  = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..game.Players.LocalPlayer.UserId
end

I tried something like that,

Custom character image

This is what the custom character looks like.

I tried deleting the StarterCharacter, I don't know if im doing any of this right and don't know how to restore the original players looks.

Any help?

2 comments

0

You have an autoclicker open in the background and i have the same one open rn XD

0

YOOO OP AUTOCLICKER GANG

2 answers

✓ Accepted answer

Okay losers, since I just figured out how to make it work, I'll post it to remind myself and let others know how I managed to do it.

game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(p,cmd,v1,v2,v3)
		wait(5)
		local newC = workspace.StarterCharacter:Clone()
		p.Character = newC
		newC.Parent = workspace
		workspace.CurrentCamera.CameraSubject = newC.PrimaryPart
		workspace.CurrentCamera.CFrame = newC.PrimaryPart.CFrame
		wait(5)
		p.Character = workspace:FindFirstChild('greatneil80')
		p:LoadCharacter()
	end)

Thats a server script.

game.ReplicatedStorage.RemoteEvent:FireServer("a")

Thats a client script

Also the script has gotta be in StarterGui inside a screengui and the screengui has to have ResetOnSpawn off

local player = game.Players.LocalPlayer
if player.Name == “urname” then

player.CharacterAppearanceId = player.UserId
player:LoadCharacter()

end

Also sorry I’m on phone.

1 comment

0

Didn't work

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