How to make a Clothing Giver On Roblox Studio

Аватар автора
Игры и Виртуальная Реальность
Hello everyone! Thank you all SO MUCH for watching and for 362 SUBS! I love you all! Have a great day/night! Baii! ? Script: ------------------------ Script ------------------------------ local pantsId = script.Parent.Parent.Clothing.Pants.PantsTemplate local shirtId = script.Parent.Parent.Clothing.Shirt.ShirtTemplate local cPart = script.Parent local cDetector = script.Parent.ClickDetector local function playSoundLocal(sId,sParent) local sound = Instance.new("Sound",sParent) sound:Play() sound:Destroy() end local function onClicked(player) print(player.Name.." clicked on Uniform Giver") playSoundLocal(152206246,player) local foundShirt = player.Character:FindFirstChild("Shirt") if not foundShirt then -- if there is no shirt print("No shirt found, creating for "..player.Name) local newShirt = Instance.new("Shirt",player.Character) newShirt.Name = "Shirt" else if foundShirt then -- if there is a shirt print("Shirt found, reconstructing for "..player.Name) player.Character.Shirt:remove() local newShirt = Instance.new("Shirt",player.Character) newShirt.Name = "Shirt" end end local foundPants = player.Character:FindFirstChild("Pants") -- Tries to find Pants if not foundPants then -- if there are no pants print("No pants found, creating for "..player.Name) local newPants = Instance.new("Pants",player.Character) newPants.Name = "Pants" else if foundPants then -- if there are pants print("Pants found, reconstructing for...

0/0


0/0

0/0

0/0