I'm trying to make something respawn after it is destroyed (should be easy) but I keep getting the error in the title. I'm not sure how to make it go away.
Here is the code -
while true do
wait(.1)
if not game.Workspace:FindFirstChild("resource") then
print 'no resource'
wait(2)
game.Lighting.resource:Clone().Parent = game.Workspace
'spawned resource'
end
end

1 comment
sigh.. how did I miss that? lmao thanks a lot dude