Im trying to make a gui that welds a hat to your head and also remove your current hat then if you press it again it comes back and removes weld any ideas?
First off, you'll need to make a clone of the user's hats with :Clone()
Put it in a folder or a model for storage.
You can go on the roblox wiki for the welding. http://wiki.roblox.com/index.php?title=Weld
now if they click again the button that removes all the new hats it would be something like
hats = --Character, idk your display for i = 1,#hats do if hats[i]:IsA("Hat") or hats[i]:IsA("Model") then -- I added model because its probably going to be a free model? or just a model the the hat itself :P hats[i]:remove() end
now you just need to weld the hats back from the storage.