of     1   

freaked
Top 50 Poster
#1103673Monday, May 26, 2008 12:56 AM GMT

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
freaked
Top 50 Poster
#1103874Monday, May 26, 2008 1:10 AM GMT

HELP!!!!!!!!!
erikrules
#1106960Monday, May 26, 2008 6:16 AM GMT

idk whats wrong with 3 of u LOL
CobraStrike4
#1107049Monday, May 26, 2008 6:32 AM GMT

weird lol
Dr01d3k4
#1107082Monday, May 26, 2008 6:40 AM GMT

You need to give it debounce, otherwise it runs twice becuase it thinks you hit it twice.
CobraStrike4
#1107085Monday, May 26, 2008 6:40 AM GMT

yup thats it
FlashJoeW
Top 100 Poster
#1107507Monday, May 26, 2008 10:23 AM GMT

i have a question, i'm sure it's explained in the function dump, but what is this? "playerFromCharacter" i haven't seen this before...
randomrobot
Top 100 Poster
#1107569Monday, May 26, 2008 10:51 AM GMT

wait....i tried debounce on that...it only works the first time. Maybe because I added a wait() to it. Btw, that's my script in one of my models :3

    of     1