local part = game.Workspace.Part
LinkedSword = game.Lighting.LinkedSword
while true do
for i,v in pairs(game.Players:GetChildren()) do
if (v.Character.Torso.Position - part.Position).magnitude <= 15 then
c = game.Lighting.LinkedSword:clone()
c.Parent = v.Backpack
break
end
end
wait()
end
I am trying to figure out how to stop the infinite cloning once you get into the range. Can anyone help assist me to figure this out? Thank you for reading this.
