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
#GUI Label text not showing
1 messages · Page 1 of 1 (latest)
game.StarterGui.ScreenGui:WaitForChild(“TextLabel”)
also, id name your screengui and text label for organisation
Is the TextLabel still transparent? Dont see you set TextLabel transparency to 0
i did that but it still doesnt pop up
the textlabels transparency is set to 0
Nothing printing in the output?
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
If nothings print it means the text label is probably not enabled so you may have directed your instances wrongly
Try to put a print after the first text.Enabled in the function
Oh no wait actually
** You are now Level 3! **
Try to replace line 2 and 5 with that
local player = game.Players.LocalPlayer
local text = player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui")
local textLabel = text:WaitForChild("TextLabel")
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")
i just realised he may be editing startergui not the playergui
local textLabel = player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui"):WaitForChild("TextLabel")
what he did here actually
i didnt read
Yea
this fixed it, thanks so much