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
The moment that the first zombie is moved into Workspace via: game.ReplicatedStorage.DroolingZombie.Parent = game.Workspace
there will no longer be a DroolingZombie within ReplicatedStorage, hence the error you showed.
You’ll instead want to clone the zombie and move the clone into workspace like this:
while true do
local time = game:GetService("Lighting").ClockTime
if time >= 18 or time < 6 then
game.ReplicatedStorage.DroolingZombie:Clone().Parent = game.Workspace
else
if game.Workspace:FindFirstChild("DroolingZombie") then
game.Workspace.DroolingZombie:Destroy()
end
end
task.wait(0.3)
end