I am trying to make a script that spawns enemies but I keep getting an error saying 'attempt to call a nil value' on Workspace.ZombieSpawner line 10. I did my best to follow the tutorial but it seems like the tutorial is using an older version of Roblox. If anyone could help me update the code so that it works with the new Roblox that would be very helpful. Thank you.
Operating system: Windows 11
Language: Lua
Homework: No
Using a Database: No
I am building a game