Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Overhead leaderstats GUI not showing?

I am new to scripting in roblox and i seem to be confused with making GUIs

The Overhead GUI is not showing, this is my code;

local player = game.Players.LocalPlayer local statgui = player.PlayerGui:WaitForChild("TimeGUI") local frame = statgui:WaitForChild("Frame") local timeframe = frame:WaitForChild("TimeFrame") local time = timeframe:WaitForChild("Label") local leaderstats = player:WaitForChild("leaderstats") local timeval = leaderstats:WaitForChild("Timer") function updateStatsToGUI() Timer.Text = (" " ..timeval.Value.. " Time alive") end timeval.Changed:connect(updateStatsToGUI)

More Info: https://gyazo.com/b5a460e6aa1096bffde5144976fa50a2?token=775f391d0c8cfbadefd82f7bae895331

1 comment

0

Quick note, WaitForChild can be very annoying to deal with (in my opinion), so if the local script is parented to timeval, you know the parents had to come before the child and should exist.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.