local plr = game.Players.LocalPlayer
local button = script.Parent
local appearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=13645"
local teleportLocation = CFrame.new(240.2, 0.5, -246.4)
function Click()
plr.CharacterAppearance = appearance
plr.Character.Torso.CFrame = teleportLocation
end
button.MouseButton1Down:connect(Click)
✓ ANSWER ACCEPTED
Why doesn't the player change appearance?
1 answer
✓ Accepted answer
You need to find a way to make the player reset or reload the character.
local plr = game.Players.LocalPlayer
local button = script.Parent
local appearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=13645"
function Click()
plr.CharacterAppearance = appearance
plr:LoadCharacter() --Look up the load character function!
end
button.MouseButton1Down:connect(Click)
Server script in workspace or something
local teleportLocation = CFrame.new(240.2, 0.5, -246.4)
game.Player.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
if player.CharacterAppearance == "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=13645" then --If the character looks like telamon!
char.Torso.CFrame = teleportLocation --Move here.
end
end)
end)
Do something like the above, I think you can think of something.
Hope this helps!
This discussion is preserved as it was. New answers, comments, and votes are closed.
