I made a contructer function for a zombie however instead of spawning in it’s defined position which is the position of the zombie spawner it spawns in the position of where the model I’m cloning it from in replicated storage has.
code:
function Zombie.new(position)
local self = setmetatable({}, Zombie)
self.Model = game.ServerStorage.ZombieModel:Clone()
self.Model.Name = "Zombie"
self.Model.Parent = game.Workspace
self.Model.HumanoidRootPart.CFrame = CFrame.new(7.65, 6.75, 24.55)
self.health = 100
self.speed = 8
self.damage = 10
self.state = "Idle"
print(self.Model)
return self
end