The script is supposed to regen a model after a certain amount of time. However, the script doesn't work at all. Output didn't give me anything.
Can someone please help me?
Here's the script:
local Playing = game.ServerScriptService.MainGame:WaitForChild("Playing")
local children = script.Parent:GetChildren()
local Tanks = children:clone()
while wait(10) do
if Playing.Value == true then
children:remove()
wait(0.1)
Tanks.Parent = script.Parent
end
end

3 comments
its because you're removing the script.
He's right, and i dont understand why you're using a getchildren, just clone the model :l
Actually, I think scripts continue to run after being destroyed. The script above doesn't even destroy itself.