I had the AI make me system where you click a noob and give it a salad and it gives you 5 cash it all works up untill I asked it to spawn a new noob at a certain point when that one gets destroyed the output says everything works says it spawns at the spot etc but it says noob humanoid root part not found but it doesn't know how to fix it and the new noob isn't spawning does anyone know how I can get it so the new noob spawns
-
Spawn a new Noob at the BoobSpawn location
local spawnLocation = game.Workspace:FindFirstChild("BoobSpawn")
if spawnLocation then
print("BoobSpawn location found.")
local newNoob = noob:Clone()
newNoob.Parent = game.Workspace
newNoob:PivotTo(spawnLocation.CFrame)local humanoidRootPart = newNoob:FindFirstChild("HumanoidRootPart") if humanoidRootPart then humanoidRootPart.Anchored = false -- Ensure the Noob is not anchored else print("HumanoidRootPart not found in new Noob.") end print("New Noob spawned at BoobSpawn location.") -- Attach the NoobDisappearOnClick script to the new Noob local newScript = script:Clone() newScript.Parent = newNoob -- Verify the position of the new Noob local newNoobPosition = newNoob:GetPivot() print("New Noob position:", newNoobPosition) else print("BoobSpawn location not found.") end endend
end)
** You are now Level 1! **