Well I've been trying to figure out why this script is working in Roblox Studio but not when I play the actual game.
local face = script.Parent.Decal
function GiveFace(Ontouch)
local hit = Ontouch.Parent:FindFirstChild("Humanoid")
if hit ~= nil then
hit.Parent.Head.face.Texture = face.Texture
end
end
script.Parent.Touched:connect(GiveFace)
^^^ that script works but it is necessary for the other scripts
local shirt = script.Parent.Shirt
function GiveFace(Ontouch)
local hit = Ontouch.Parent:FindFirstChild("Humanoid")
if hit ~= nil then
hit.Parent.Shirt.ShirtTemplate = shirt.ShirtTemplate
end
end
script.Parent.Touched:connect(GiveFace)
^^^ this script doesn't work
local pants = script.Parent.Pants
function GiveFace(Ontouch)
local hit = Ontouch.Parent:FindFirstChild("Humanoid")
if hit ~= nil then
hit.Parent.Pants.PantsTemplate = pants.PantsTemplate
end
end
script.Parent.Touched:connect(GiveFace)
^^^ and also this one doesn't work

2 comments
Put it in a code block, NOBODY can read that ._.
@obcdino sorry i'm kinda new to this