Im trying to create a gui that when clicked, checks if a player has a certain shirt and if they have that shirt, give them an item. I can do the gui and item giver part I just don't know where to start on making the shirt checker, I've started with this but idek, have been on holiday for a week, so am I bit rusty... excuse that.
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
if player.Shirt.ShirtTemplate == "rbxassetid://479343349" then
print "worked"
end
Any help would be greatly appriciated, I'm only trying to expand my knowledge so nasty comments aren't needed.

1 comment
Anything?