I want to clone random parts
i made a script and there is no error output
local light = game.Lighting.kucukler
local kucuk = {light.a,light.b,light.d,light.e,light.c,light.f,light.g,light.aa,light.ab,light.ac,light.ad}
for _, sled in pairs(workspace:GetChildren()) do
if sled.Name == "sled" then
local regen = sled.Regen
local ClickDetector = regen.Click
ClickDetector.MouseClick:Connect(function()
local a = sled:FindFirstChild("kizak")
local kucukklon = kucuk[math.random(#kucuk)]
if sled:FindFirstChild("kizak") then
regen.alarm:Play()
return end
local value = sled:WaitForChild("Value")
if value.Value == kucuk then
local new = kucukklon:clone()
new.Parent = sled
new.Name = "kizak"
new:MakeJoints()
regen.BrickColor = BrickColor.random()
new:FindFirstChild("Seat").Position = regen.Position
wait(5)
regen.BrickColor = BrickColor.random()
end
end)
end
end