Hi, I have script with giving "T-shirt" or decal but it works only by touching, how can I turn it to works only by clicking in GUI?
This is this script
local brick = script.Parent
local decal = brick:findFirstChild("Decal")
function GetFace(hit)
local humanoid = hit.Parent:findFirstChild("Humanoid")
local torso = hit.Parent:findFirstChild("Torso")
if torso ~= nil and humanoid ~= nil then
local shirt = hit.Parent:findFirstChild("Shirt Graphic")
if shirt ~= nil then
shirt.Graphic = decal.Texture
else
local altshirt = torso:findFirstChild("roblox")
if altshirt ~= nil then
altshirt.Texture = decal.Texture
else
print("Torso found. Shirt not found. Assumed to be a robot.")
end
end
else
print("Not a valid person! T-Shirt cannot be changed!")
end
end
brick.Touched:connect(GetFace)

1 comment
That's not that what I'm asking for