#1020374354867007528 YES I USED CHATGPT AND ITS NOT WORKING IDK WHATS THE REASON -- Variable to control spawning
local isSpawning = false
-- The main loop to continuously spawn and destroy the kill brick
while true do
if not isSpawning then
isSpawning = true -- Prevent spawning multiple times
-- Clone the part (script.Parent)
local newKillBrick = script.Parent:Clone()
-- Get the position of the spawner
local spawner = game.Workspace.Win1.Spawner
-- Set the position of the new part to the Spawner's position
newKillBrick.Position = spawner.Position
-- Parent the new part to the workspace
newKillBrick.Parent = game.Workspace
-- Wait for 3 seconds before destroying the new part
wait(3)
-- Destroy the new part after 3 seconds
newKillBrick:Destroy()
-- Wait for 5 seconds before starting the next cycle (no new spawn yet)
wait(5)
-- Allow spawning again
isSpawning = false
end
end
IT SPAWNS INF PARTS AFTER ITS DESTROYED HERES MY GOAL: make a script where the part spawns for 3 seconds and then it gets destroyed and it repeats like a loop you know so i wait 5 seconds before its spawned again but it somehow spawns inf parts when its destroyed
** You are now Level 1! **


