So i have this line of code that just sets the gui text to the brightness value of the flashlight. however it sets it to a odd 10 digit number (ex. 1.2000007312) i wish there was a way to round that number to 1.2, it works for the range value just fine but not for the brightness, how to fix?
while true do
wait(0.5)
local Br = script.Parent.Parent.Parent.Parent.neon.SpotLight.Brightness
script.Parent.Text = ("B:"..Br)
end

5 comments
if the brightness changes using another script, it will just freeze on the last number.
No? Why's that?
idk, it just freezes and and shows the same number forever, i checked the script incase i copypasted it wrong, if i change the brightness using another script, it will just simply freeze, also no errors in the output
Where is the script located?
I updated my post of how to set it up, serverscripts don't work in StarterGui as it's local.