-
What do you want to achieve? Keep it simple and clear!
A node that will spawn model when the previous model get broken by player -
What is the issue? Include screenshots / videos if possible!
It is not working, once I destroy the model another model won’t spawn when it pass 10 second -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
None, I found no solution yet
local Storage = game:GetService("ServerStorage")
local Box = Storage:WaitForChild("Breakables").Box2
local boxclone = Box:Clone()
boxclone.Parent = script.Parent.Parent.Part
boxclone:SetPrimaryPartCFrame(CFrame.new(script.Parent.Position))
local deb = false
while true do
local child = script.Parent.Parent.Part:GetChildren()
if #child >= 0 and deb == false then
deb = true
wait(10)
local clone = Box:Clone()
clone:SetPrimaryPartCFrame(CFrame.new(script.Parent.Position))
deb = false
end
end