I am trying to make an error text label and when I turn visible on in studio it shows but when its off and I play the game with the script that makes it visible it doesn’t show, the script works but for some reason its invisible. Thank you for your time!
local starterGUI = game:GetService("StarterGui")
local items = serverStorage.Items
local Axe = items.Axe
local Pickaxe = items.Pickaxe
local errorText = game.StarterGui.Shop.TextLabel
if Gold.Value >= 5 then
errorText.TextTransparency = 1
else
errorText.TextTransparency = 0
end
end)
that is the general area and I deleted some un important stuff.
local Player = game:GetService("Players").LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui") :: StarterGui
local items = serverStorage.Items
local Axe = items.Axe
local Pickaxe = items.Pickaxe
local errorText = PlayerGui:WaitForChild("Shop").TextLabel
if Gold.Value >= 5 then
errorText.TextTransparency = 1
else
errorText.TextTransparency = 0
end
end)