Zis is my code halp(PS I'm gonna have a spawner so thats why it starts with a if statement)

if script.Parent.Parent == game.Workspace then
	local speed = math.random(10,24)
	local health = math.random(75,150)
	local name = script.Parent.Name
	local Dum = script.Parent
	local hum = script.Parent:FindFirstChild("Humanoid")
	hum.WalkSpeed = speed
	hum.MaxHealth = health
	hum.Health = health
	wait(0.1)
	while true do
		if hum.MaxHealth <100 then
			local name = "Weak"
		end
		if hum.MaxHealth >125 then
			local name = "Strong"
		end
		if hum.MaxHealth >140 then
			local name = "Mighty"
		end
	end
end

1 comment

0

humanoid.Health.Changed:Connect(function() character.Name = humanoid.Health