Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why can't I get a value from the loading gui?

Asked by
Griffi0n 315 Moderation Voter
6 years ago
local value = nil
local TeleportService = game:GetService("TeleportService")
TeleportService.LocalPlayerArrivedFromTeleport:connect(function(LoadingGui)
    value = LoadingGui.Test.Value
end)
print(value)

When the script runs print it still outputs nil. How can I make it so it gets the proper value (10) from the custom loading gui?

Answer this question