#GUI Label text not showing

1 messages · Page 1 of 1 (latest)

subtle coral
#

I am a new scripter and am trying to make a textlabel show up when it enters and invisible part. I checked to make sure the player is touching the part and to see whether the gui was enabled and they both are but it still doesnt show the text

vernal panther
#

game.StarterGui.ScreenGui:WaitForChild(“TextLabel”)

#

also, id name your screengui and text label for organisation

worldly cargo
#

Is the TextLabel still transparent? Dont see you set TextLabel transparency to 0

subtle coral
subtle coral
waxen bear
subtle coral
#

i made it so that if the text is enabled it will print text is equal to true in the output and it does print that which means it is enabled but it still doesnt show the textlabel

waxen bear
#

Try to put a print after the first text.Enabled in the function

#

Oh no wait actually

brisk flowerBOT
#

studio** You are now Level 3! **studio

waxen bear
#

That’s because you can’t access the « StarterGui » on client side, you need to access it in a Player

#

Also if the local script is loaded before the Folder in your workspace it won’t work
Try do that
local block = game.Workspace:WaitForChild("Folder"):WaitForChild("block")

vernal panther
#

i just realised he may be editing startergui not the playergui

#

local textLabel = player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui"):WaitForChild("TextLabel")

vernal panther
#

i didnt read

waxen bear
#

Yea

subtle coral