I don't know how to do this this is my code, it's a zombie spawner by the way.
local ZS = script.Parent
while true do
local spawner = game.Lighting.Zombie:Clone(ZS)
spawner.Parent = game.Workspace
spawner.Position = ZS.Position == Vector3.new(ZS.Postion.X, ZS.Position.Y + 50, ZS.Position.Z)
wait(4)
end

1 comment
Can you explain why you put spawner.Position = ZS.Position == Vector3.new() ? because you are setting spawner's position to an if statement condition