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

how come when your health is lowwer than 35 the script doesnt work?

heres the script when the health is lower then the lowamt (low amount) then the frsme should be visible and the sound should play

local play = game.Players.LocalPlayer

local lowamt = 35

--play.Character.Humanoid.Health.Changed:Connect(function()
 if play.Character.Humanoid.Health <= lowamt then
	script.Parent:Play()
	script.Parent.Parent.lowgui.lowhealthframe.Visible = true
	
end
--end)

but its not happening?

4 comments

0

is the play.Character.Humanoid.Health.Changed:Connect(function() commented out when you post it here?

0

yes

0

Try putting it in while true do

0

no

1 answer

here

local play = game.Players.LocalPlayer

local lowamt = 35

play.Character.Humanoid.Changed:Connect(function()
 if play.Character.Humanoid.Health <= lowamt then
    script.Parent:Play()
    script.Parent.Parent.lowgui.lowhealthframe.Visible = true

end
end)

1 comment

0

isnt that his script but with just the -- removed

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