So I'm trying to make a surface guy change to the time a player has been in my game. I got a script for the free model's tab which shows how long a player has been in my game for which works fine but my scripts just not displaying it on a surface GUI.
Here is my script:
while true do wait(1) script.Parent.Text = game.Players.LocalPlayer.leaderstats["Time Played"].Value end
Any help would be really appreciated.