local Car = workspace.Car
local gun = game.Lighting.M60
local car = game.Lighting.Car2
while wait() do
for i,v in pairs(game.Players:GetChildren()) do
if (v.Character.Torso.Position-Car.Position).magnitude<=15 then
if not v.Backpack:FindFirstChild(gun.Name) then
if car:isA"Model" then
car:clone()
end
end
end
end
end
Hi, what I'm trying to do here is that, if someone has a tool, such as an M60 in his or her pack, and if they go near a object, such as a car, a new car or part will clone itself into the game. I tried to figure it out but I couldn't. Can anyone help me? Thank you for reading.
