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

Why my Text Label doesn't show or still invisible?

This is my problem. All of the script works but why isn't seen the TextLabel. This is the scripts. For the Main:(Parent:ServerScriptService)

local ServerScriptService = game:GetService("ServerScriptService")
local Timer = ServerScriptService:WaitForChild("Timer")
Timer.Disabled = false

For the Timer(Parent:ServerScriptService)(Disabled)

if game.StarterGui.Time.TextLabel.Script.Disabled == true then
game.StarterGui.Time.TextLabel.Script.Disabled = false
end

For this script is the parent of TextLabel. The parent of TextLabel is Time. The parent of Time is StarterGui. This script is disabled too.

if script.Parent.Visible == false then
script.Parent.Visible = true
end

This mention scripts are working but why I can not see the TextLabel even the script says that if the TextLabel is not visible then the TextLabel is Visible. Can you fix it?

2 comments

0

Because, it is in StarterGui, you have to put it on game.Players.LocalPlayer.PlayerGui.

0

The GUI is replicated to the Client. Use a LocalScript. Remember, LocalScripts cannot see ServerScriptStorage.

1 answer

✓ Accepted answer

StarterGui is a replicated client of PlayerGui. Think of it as a hierarchy, PlayerGui is runned first then startergui. You need to update it with a parameter that relates to the localplayer. Such as, game.Players.PlayerAdded:Connect(function(plr). Plr being game.Players.LocalPlayer. Then it is just PlayerGui.

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