-- Uniform Giver Script
-- Updated 2025/11/10
local clickDetector = clickPart:WaitForChild("ClickDetector")
-- Adjust these to match your layout:
local pants = script.Parent.Parent.Model:WaitForChild("Pants")
local shirt = script.Parent.Parent["act 3"]:WaitForChild("Shirt")
local pantsId = pants.PantsTemplate
local shirtId = shirt.ShirtTemplate
clickDetector.MouseClick:Connect(function(player)
local char = player.Character
if not char then return end
-- Remove accessories
for _, item in ipairs(char:GetChildren()) do
if item:IsA("Accessory") then
item:Destroy()
end
end
-- Remove any T-Shirt layer (graphic shirt)
local tshirt = char:FindFirstChildOfClass("ShirtGraphic")
if tshirt then
tshirt:Destroy()
end
-- Handle Shirt
local existingShirt = char:FindFirstChildOfClass("Shirt")
if existingShirt then
existingShirt:Destroy()
end
local newShirt = Instance.new("Shirt")
newShirt.Name = "Shirt"
newShirt.ShirtTemplate = shirtId
newShirt.Parent = char
-- Handle Pants
local existingPants = char:FindFirstChildOfClass("Pants")
if existingPants then
existingPants:Destroy()
end
local newPants = Instance.new("Pants")
newPants.Name = "Pants"
newPants.PantsTemplate = pantsId
newPants.Parent = char
print("Uniform applied to " .. player.Name)
end)```
** You are now Level 1! **