local Part = script.Parent
Part.Touched:connect(function(HIT)
local H = HIT.Parent:FindFirstChild("Humanoid")
if H then
local Player = game.Players:GetPlayerFromCharacter(HIT.Parent)
Player.PlayerGui.ScreenGui.Frame.Visible = true
end end)
Trying to make a GUI pop up when I walk on a brick. Seems to have no errors yet it does not work.

2 comments
Make sure that the ScreenGui is enabled
Please also use the Lua code block.