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 |