You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I would like for the DroolingZombie model to spawn when it’s night time and despawn when it is day time
-
What is the issue? It spawn once but dosen’t despawn or respawn
-
What solutions have you tried so far? i try making my own then look on youtube/google and devforum but could not find anything
i putted them normally all where it sould be
while true do
local time = game:GetService("Lighting").ClockTime
if time >= 18 or time < 6 then
game.ReplicatedStorage.DroolingZombie.Parent = game.Workspace
else
if game.Workspace:FindFirstChild("DroolingZombie") then
game.Workspace.DroolingZombie:Destroy()
end
end
task.wait(0.3)
end