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 fix my script for make a text button that changes players position and looks?

How would I make a text label button on clicked change a players position and looks as in how would I change the players looks to a model or how would I morph the player to something else In my character customization menu

Here is my script

1.   function Clicked(player)
2   humanoid:MoveTo(part.Position)
3   Player.Character = morphA
4   end
5    script.Parent.MouseClick:connect(Clicked)



4 comments

0

I forgot to add my script sorry if it came out as a request I’m very srry

0

Anyone got any idea how to fix this

0

I added click detector

0

You don't need a clickdetector for a TextButton. lol

1 answer

✓ Accepted answer

I don't like using MoveTo for moving the Player to a certain point. Try CFrame. (Make sure this script is a LocalScript.)

function Clicked()
   game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = morphA.CFrame
end
script.Parent.MouseClick:connect(Clicked)

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