Shirt Error, Help

adding on to this, you can also add an id of an accessory as a value inside the script so you don’t need to get several instances

local shirt = --add shirt id
local pants = --add pants id
local cost = 50 --expense

script.Parent.Parent.ProximityPrompt.Triggered:Connect(function(plr)
	local leaderstats = plr.leaderstats --get leaderstats
    if leaderstats then -- if true then
        if leaderstats.Money.Value >= cost then -- if player has enough money to buy
            leaderstats.Money.Value -= cost -- subtract
            plr.Character.Shirt.ShirtTemplate = shirt --get id + get player + paste to player's shirts
	        plr.Character.Pants.PantsTemplate = pants
        else -- if agurement is not met
            print("not enough dollars") -- print to output
        end
    end
end)

IT STILL DOESNT WORK BRO
(sorry, im just mad at studio)

nope still doesnt work
please someone help

Could you add me to your project via team create so I could try and fix it manually?
Add me on roblox

well i’m speculating that you are not getting the values properly, or just copypasting the script without making any changes
any of those can apply

No need for speculations, I think I know what’s the problem I just need to do it manually so I can see it myself

you need to accept my friend request in order to make you a editor

Instead of :FindFirstChild() have you tried using :WaitForChild(), since I saw nobody reply this comment. I wonder if it works!

Accepted. Try to add me to team create now?

This is not the problem.
This script is function based so It does not need to wait for a child unless It is waiting for something to be created.

yes it works join the game, its called Chicago, illinois

1 Like