I still can't get this to work, so I decided to simplify my question. I want to make the gui show when the block is touched (for the person who touched it.) I then want the gui's text to change, in this case, "Hello!" Here is one of the scripts I tried. I want to text to NOT change until the block is touched.
local function onTouch(hit)
if (hit.Parent:FindFirstChild("Humanoid") == nil) then
game.Players.LocalPlayer.PlayerGui.ScreenGui.Enabled = true
setText = "Hello!"
end
end
workspace.indicator1.Touched:Connect(onTouch)
This code is a bit wonky but this is the closest thing that made sense on what I was attempting. I apologize if this is a dumb question (I am new to coding,) but I can't find this anywhere, and everything I do find doesn't work with what I am trying to do. Thank you so much.

3 comments
This is in a local script, which is inside StarterGui > ScreenGui > Frame > TextLabel.
Edited my cide.
Edited again, apologies.