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

Whats wrong with this script? The numeric values don't register!

while wait() do
	local level = game.ServerStorage.LevelNumber.Value
	local health = workspace.Level.boss.boss.Human.Health
		if health < 0.5 * (health * level) then
		print("Rage")
		break
	end
end

Doesn't seem to work? Whats wrong with it?

3 answers

✓ Accepted answer
local defaultHealth = workspace.Level.boss.boss.Human.Health
local level = game.ServerStorage.LevelNumber.Value
while wait() do
     if health < defaultHealth / 2 then
        print("Rage")
        break
    end
end

there ya go.

while wait() do 
	local level = game.ServerStorage.LevelNumber 
	local health = workspace.Level.boss.boss.Human.Health 
	if health < 0.5 * (health * level.Value) then 
		print("Rage") 
		break 
	end 
end

1 comment

0

May work, but idk

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