How can I make a character selection GUI?

So basically, I’ve been trying to learn how to do this and as you all know if you read my other posts, I’m a beginner in scripting. I’ve trying watching videos but literally all of them are outdated! So if you guys have any tips or clues, I would really appreciate it. :smiley: [Also, could someone teach me how to put a custom hat on when clicking a button?]

1 Like

Try making a couple of buttons, upon pressing the buttons, it inserts a shirt into the player. i can make a sample of this in a minute.

1 Like
local player = game.Players.LocalPlayer

local shirt1 = Instance.new(“Shirt”)
shirt1.ShirtTemplate = (“rbxassetid://2562962230”) – shirt ID

script.Parent.MouseButton1Click:Connect(function()

local plrshirt = player.Character:WaitForChild("Shirt")
plrshirt:Destroy()
wait(1)
shirt1.Parent = player.Character

end)

1 Like

put this localscript into the button you want, upon clicking it, it will delete the players shirt and replace it with a different one

1 Like

Thanks for the script but what I’m looking for is a Character Selection Gui.

For the pants and shirt choose gui you can do this.

local shirtid = 1344433 -- Your shirt ID

game.StarterGui.ScreenGui.TextButton.MouseButton1Click:Connect(function(player) -- Location of your GUI
	player.Character.Shirt.ShirtTemplate = shirtid -- change to player.Character.Pants.PantsTemplate = pants id For pants
end)

Tell me if you come into any errors

Sorry, I’m not able to give you an entire gui, that shouldnt be too hard to make. i’d assume you’d know how to close the gui once the character is selected?

yes of course! Thanks for the script!

Also, how would you do it with skin color and hat?

Simple, just make a script that changes the body colors.

game.players.LocalPlayer.Character.BodyColors...