I am making a Half-Life 2 styled health GUI and it works except it will display decimals. So instead of showing 47 it shows something like 47.12515. Does anyone know how I could fix this?
Here is my script:
`local player = script.Parent.Parent.Parent.Parent.Parent
while true do hel = player.Character.Humanoid.Health if hel <= 25 then script.Parent.Text = hel script.Parent.BackgroundColor = BrickColor.new ("Bright red") else script.Parent.Text = hel script.Parent.BackgroundColor = BrickColor.new ("Bright green") end wait() end`

2 comments
Well when I did the first thing you said which was to put it in a local script and define the Player as game.Players.LocalPlayer it didn't work.
And would I have to define what number and wholenumber are. And if so how would I define them. I'm bad at this btw.