Wep does not get parented into Lighting when I click. What I am trying to do is, when someone clicks they get the "Wep" but clones into Lighting so other people can get it.
Part = script.Parent
Part.ClickDetector.MouseClick:connect(function()
local Wep = game.Lighting:WaitForChild("Sword")
Wep:Clone().Parent = game.Lighting
local Player = game.Players.LocalPlayer
for i,v in pairs (game.Players:GetPlayers()) do
Wep.Parent = Player.Backpack
end
end)

1 comment
I had left that i v in pairs loop in there because I was testing with a normal script too.