Why when I touch the clone button, I get two copys of clones? Here is the script:
function onTouch(hit)
p = game.Players:playerFromCharacter(hit.Parent)
if p~=nil then
ff = script.Parent.Parent.Figure1:findFirstChild("Freaked"):clone()
ff:findFirstChild("Head").BrickColor = p.Character:findFirstChild("Head").BrickColor
ff:findFirstChild("Torso").BrickColor = p.Character:findFirstChild("Torso").BrickColor
ff:findFirstChild("Right Arm").BrickColor = p.Character:findFirstChild("Right Arm").BrickColor
ff:findFirstChild("Right Leg").BrickColor = p.Character:findFirstChild("Right Leg").BrickColor
ff:findFirstChild("Left Leg").BrickColor = p.Character:findFirstChild("Left Leg").BrickColor
ff:findFirstChild("Left Arm").BrickColor = p.Character:findFirstChild("Left Arm").BrickColor
ff.Parent = workspace
ff:MoveTo(p.Character.Torso.Position + Vector3.new(0, 0, 10))
ff:MakeJoints()
ff.Name = p.Name .. ""
ff.Torso.Locked = false
ff.Head.Locked = false
ps1 = p.Character:findFirstChild("Shirt")
if ps1==nil then return "moo" end
ps = ps1:clone()
ps.Parent = ff
pp1 = p.Character:findFirstChild("Pants")
if pp1==nil then return "moo" end
pp = pp1:clone()
pp.Parent = ff
wait(5)
else return "not a player"
end
end |