Script Only Cloning the Humanoid

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?
    I want to spawn the entire enemy model.

  2. What is the issue?
    The game is only spawning the enemy’s humanoid.

    Here is an image:
    Screenshot 2021-11-07 002328

  3. What solutions have you tried so far?
    I tried using the Position property, but that doesn’t work either.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!




Here is my script:

local ServerStorage = game:GetService("ServerStorage")
local enemy = ServerStorage.Enemy
local enemySpawns = workspace.EnemySpawns

local function SpawnEnemy()
	for _, spawner in pairs(enemySpawns:GetChildren()) do
		local cloneEnemy = enemy:Clone()
		cloneEnemy.Parent = workspace
		cloneEnemy.PrimaryPart.CFrame = spawner.CFrame
	end
end

while true do
	wait(5)
	SpawnEnemy()
end
local ServerStorage = game:GetService("ServerStorage")
local enemy = ServerStorage:WaitForChild("Enemy")
local enemySpawns = workspace:WaitForChild("EnemySpawns")

local function SpawnEnemy()
	for _, spawner in pairs(enemySpawns:GetChildren()) do
		local cloneEnemy = enemy:Clone()
		cloneEnemy.Parent = workspace
		cloneEnemy.PrimaryPart.CFrame = spawner.CFrame
	end
end

while true do
	task.wait(5)
	SpawnEnemy()
end

You probably just needed to add a “WaitForChild” to allow for the entire enemy model to load. Also only server scripts can access ServerStorage, so make sure this is a server script.