of     1   

yuumyuumy
#35840114Friday, October 22, 2010 11:37 PM GMT

I can't seem to get the script to put the weapon it has cloned into the player's StarterGear, can you please identify the problem? Here is my script: function onClick() a = script.Parent.Parent.Parent.Parent.Parent b = a:FindFirstChild("leaderstats") if b ~= nil then c = b:FindFirstChild("Points") if c.Value >= 10 then c.Value = c.Value - 10 d = game.Lighting.Explosion:Copy() ------------Weapon name d.Parent = script.Parent.Parent.Parent.StarterGear ----------Puts into starterGear end end end script.Parent.MouseButton1Click:connect(onClick
Spectrumw
#35840209Friday, October 22, 2010 11:38 PM GMT

function onClick() a = script.Parent.Parent.Parent.Parent.Parent b = a:FindFirstChild("leaderstats") if b ~= nil then c = b:FindFirstChild("Points") if c.Value >= 10 then c.Value = c.Value - 10 d = game.Lighting.Explosion:clone() ------------Weapon name d.Parent = script.Parent.Parent.Parent.StarterGear ----------Puts into starterGear end end end script.Parent.MouseButton1Click:connect(onClick)
crazypotato4
#35840217Friday, October 22, 2010 11:39 PM GMT

function onClick() a = script.Parent.Parent.Parent.Parent.Parent b = a:FindFirstChild("leaderstats") if b ~= nil then c = b:FindFirstChild("Points") if c.Value >= 10 then c.Value = c.Value - 10 d = game.Lighting.Explosion:Clone() ------------it's CLONE, not COPY. d.Parent = script.Parent.Parent.Parent.StarterGear ----------Puts into starterGear e = game.Lighting.Explosion:Clone() e.Parent = script.Parent.Parent.Parent.Backpack -- so you don't have to die to get it. end end end script.Parent.MouseButton1Click:connect(onClick)
iownedu89
#35840240Friday, October 22, 2010 11:39 PM GMT

function onClick() a = script.Parent.Parent.Parent.Parent.Parent b = a:FindFirstChild("leaderstats") if b ~= nil then c = b:FindFirstChild("Points") if c.Value >= 10 then c.Value = c.Value - 10 d = game.Lighting.Explosion:Clone() ------------Weapon name d.Parent = script.Parent.Parent.Parent.Parent.Parent.StarterGear ----------Puts into starterGear end end end script.Parent.MouseButton1Click:connect(onClick)
yuumyuumy
#35840286Friday, October 22, 2010 11:40 PM GMT

Whats the difference??
Spectrumw
#35840331Friday, October 22, 2010 11:41 PM GMT

:copy(), does not exist, :clone() does, and you forgot to close the '('.
yuumyuumy
#35840338Friday, October 22, 2010 11:41 PM GMT

OHMAIGAWD Spelling error ruined script >__>
crazypotato4
#35840377Friday, October 22, 2010 11:41 PM GMT

The difference is that mine is better :3 Also, Copy() is not a real method, Clone() is.
yuumyuumy
#35840397Friday, October 22, 2010 11:41 PM GMT

Thanks alot... Stupid typing fail :P
yuumyuumy
#35841265Friday, October 22, 2010 11:55 PM GMT

It still isn't working and by the way its a GUI button.

    of     1