Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does my Nexus have 0 health when he spawns?

I have a Nexus model that has health while it is in ReplicatedStorage. But after being cloned to Workspace, the Nexus has 0 health.

When it has just a Head part, it has health.

But upon adding a Torso part, it has 0 health.

Is there something wrong with my script?

local nexus = game.ReplicatedStorage.Nexus
local currentRound = 1

function spawnNexus()
	newNexus = nexus:Clone()
	newNexus:makeJoints()
	newNexus.Parent = game.Workspace
	newNexus.Humanoid.Health = (currentRound * 70) + 30
	newNexus.Humanoid.MaxHealth = newNexus.Humanoid.Health
	newNexus:makeJoints()
	newNexus:makeJoints()
	print(newNexus.Humanoid.Health)
	print(newNexus.Humanoid.MaxHealth)
end

wait(10)
spawnNexus()

Image of Nexus after spawn w/ Torso part

1 answer

i don't know much about the topic of replicated storage, but you are about the fourth person who has had trouble with health in humanoids when cloned and placed outside of replicated storage. I'm sure it's just a bug.

1 comment

0

It's not a bug. I fixed it once with an actual model that looked like a Player, but for some reason it won't work with this one.

This discussion is preserved as it was. New answers, comments, and votes are closed.