Hello, I'd like to do a GUI which is showing the Hertz Value but it doesn't work. In the output windows, I can see :
10:37:00.551 - Players.Player.PlayerGui.HUD.Script:5: attempt to call global 'Hertz' (a number value) 10:37:00.552 - Stack Begin 10:37:00.552 - Script 'Players.Player.PlayerGui.HUD.Script', Line 5 10:37:00.552 - Stack End
Here is my script
HUD = script.Parent
Hertz = HUD.Hertz.Value
Hertz_Shower = HUD.HertzDisplayer.Hertz
Hertz_Shower.Text = ""..Hertz" Hertz"

4 comments
Thnks for the help !
Variables can hold the value of a property, but the variable will not remain connected to the object, so when the property changes the variable won't. Also look into tostring()
@Perci; tostring is not necessary in this case, and would still require concatenation. @OP; The empty string concatenation before
Hertz.Valueis also unneccessary.Not in this case, but as for the original question, tostring() is the best option in most cases.