This is a local script.
So I have this simple script that changes the text of a textlabel (script.Parent.Frame.HP) to the value which is located at game.ServerStorage.PlayerStats(player's name).HP.Value
This value is a number.
local player = game.Players.LocalPlayer while true do wait(.5) script.Parent.Frame.HP.Text = game.ServerStorage.PlayerStats:FindFirstChild(player.Name).HP.Value end
For some reason, the script only works in testing mode (F5) where it spawns a character, but it doesn't work on the actual game.