Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how would i go about adding a click to wear on shirts and pants?

Asked by 6 years ago
Edited 6 years ago

looking to add a button where you click to wear a shirt but when you click the button it changes your shirt but you keep your other clothes you are wearing on roblox, any ways to do this? I understand id have to add the ids for the shirts and pants but is there any methods that must be used??


debounce = true function onTouched(hit) if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then debounce = false if not (hit.Parent.Shirt == nil) then hit.Parent.Shirt:remove() end wait(1) debounce = true end end script.Parent.Touched:connect(onTouched)

Answer this question