#This just doesnt work

1 messages · Page 1 of 1 (latest)

floral pawn
#

-- 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)```
#

Its a uniform giver

#

@bold mortar Do you know the problem?

shadow glade
#

please format your code

floral pawn
muted condorBOT
#

studio** You are now Level 1! **studio

shadow glade
#

the grave/backtick character `

#

```lua
print("Hello, World!")
```
becomes

print("Hello, World!")
floral pawn
#
print("Hello, World!")
#

K

tawny frigate
#

Chat gpt code

dreamy radish
#

ChatGPT code AND slow ?

#

can’t be saved

floral pawn
dreamy radish
#

You asked ChatGPT to make u a code out of all things btw

floral pawn
dreamy radish
#

What r u trying to do

floral pawn
dreamy radish
floral pawn
#

I’m just trying to get help for this code

dreamy radish
#

I’m not helping you

#

I give up

floral pawn
#

Good

dreamy radish
#

I ask u what problem ur having and u start crying

floral pawn
#

Your no help bro

dreamy radish
#

Your no use

dreamy radish
#

I ask what ur trying to do and ur crying

#

You’re genuinely slow in the head

floral pawn
#

I’m so sad

dreamy radish
#

“I want help but I tell everyone to go away who tries helping me”

open flax
#

Please don't not forget add clothes id like shirt and pant

#

Ensure make your upload the shirt and pant copy the id above