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

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

Asked by 5 years ago

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?

0
Because, it is in StarterGui, you have to put it on game.Players.LocalPlayer.PlayerGui. cherrythetree 130 — 5y
0
The GUI is replicated to the Client. Use a LocalScript. Remember, LocalScripts cannot see ServerScriptStorage. JakyeRU 637 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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.

Ad

Answer this question