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.
Hmmm...if you want to make a GUI pop up, try this:
function AppearGui() for _,c in pairs(game.Players:GetPlayers()) do c.PlayerGui.ScreenGui.Frame.Visible = true end end script.Parent.Touched:connect(AppearGui)
It should be quite that simple, really.