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

How do I teleport the character after they change their appearance?

function Click(mouse)
script.Parent.Parent.Parent.Parent.Parent.CharacterAppearance =
"http://www.roblox.com/Asset/CharacterFetch.ashx?userId=13645"
script.Parent.Parent.Parent.Parent.Parent.Character.Position(240.2, 0.5, -246.4)
end

script.Parent.MouseButton1Down:connect(Click)

1 answer

✓ Accepted answer

Use this instead :)

local plr = game.Players.LocalPlayer
local button = script.Parent
local appearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=13645"
local teleportLocation = Vector3.new(240.2, 0.5, -246.4)


function Click()
	plr.CharacterAppearance = appearance
	plr.Torso.CFrame = CFrame.new(teleportLocation)
end



button.MouseButton1Down:connect(Click)

And make sure it's a LocalScript instead of a Script

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