so here my code
wait(7)
while wait() do
for i, v in pairs(game.Workspace.Area1DummySpawn:GetChildren()) do
if v:IsA("BasePart") then
if v:FindFirstChild("Used").Value == false then
task.wait(5)
v.Used.Value = false
local dummy = game.Workspace.Area1Dummy:Clone()
if v.Used.Value ~= true then
dummy:SetPrimaryPartCFrame(v.CFrame)
v.Used.Value = true
dummy.Parent = v
end
v.Used.Value = true
end
end
end
end
i want this script so that everytime the Used.Value = false the lines after that will happen but not affect the loop and make it stop. So like i have 2 blocks and i make the Used.Value = false on one and then make the Used.Value = false on the other one 2 seconds later, i want it so after 5 seconds the first one will make the Used.Value = true then after another 2 seconds the other one goes back to true. But whats happening is the second one wont go back till 5 seconds after the first one because it is pausing the script