#Click on a Gui Button to Equip a shirt

1 messages · Page 1 of 1 (latest)

fresh harness
#

I am struggling with this script if i try my script it out just deletes my shirt and the enw shirt doesn't get on me so my top of the body is just naked can someone help me

This is my script for it

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local shirtUrl = 73531919447699
local pantsUrl = 94307089802559

script.Parent.MouseButton1Click:Connect(function()
if character:FindFirstChild("Shirt") then
character.Shirt.ShirtTemplate = shirtUrl
else
local shirt = Instance.new("Shirt", character)
shirt.ShirtTemplate = shirtUrl
end
if character:FindFirstChild("Pants") then
character.Pants.PantsTemplate = pantsUrl
else
local pants = Instance.new("Pants", character)
pants.PantsTemplate = pantsUrl
end
end)