I'm making a testing area and i wanna make gui buttons that put a hat made out of parts on a player's head, and remove them from the player's head when the button is pressed again. I couldn't really do anything since i'm not a scripter but there's no other website i found.
Make the hat, group it, get a character, make it like its on the character's head, delete the character, put the group inside the ReplicatedStorage, name it Hat
. Then make the gui, put this script inside the button
local player = script.Parent.Parent.Parent.Parent.Parent local hat = game.ReplicatedStore:WaitForChild("Hat"):Clone() script.Parent.MouseButton1Click:Connect(function() hat.Parent = player.Character.Head end)