
Keyless

local w = game.Workspace
local me = game.Players.LocalPlayer
local char = me.Character or (me.CharacterAdded:Wait() and me.Character)
local tool = char:FindFirstChildWhichIsA("Tool")
-- local pturels = w.placedAssets.premiumTurrets
-- local turel = pturels:FindFirstChild(me.Name)
if tool then
local coun = 70
local dist = 130 / coun
for a=1, coun do
local ctool = tool:Clone()
ctool.Parent = tool.Parent
task.defer(function()
while ctool.Parent do
ctool:Activate()
task.wait()
ctool:Deactivate()
task.wait()
end
end)
tool.Changed:Connect(function(parent) if parent == "Parent" then ctool:Destroy() end end)
for _,prt in pairs(ctool:GetChildren()) do
if prt:IsA("BasePart") then
prt.CFrame = tool[prt.Name].CFrame + Vector3.new(0, 0, dist*a)
prt.Anchored = true
end
end
end; local save = tool.Parent
task.defer(function()
while tool.Parent == save do
tool:Activate()
task.wait()
tool:Deactivate()
task.wait()
end
end)
end
if turel then
for _,obj in pairs(pturels:GetChildren()) do
if obj.Name == "_" then
obj:Destroy()
end
end
turel.Name = "_"
local coun = 15
local dist = 130 / coun
for a=1, coun do
local cturel = turel:Clone()
cturel.Parent = turel.Parent
cturel.main.CFrame = turel.main.CFrame + Vector3.new(0, 0, dist)
task.wait(); turel = cturel
end
end


good