I want a tutorial gui to pop up whenever a player steps on a specific brick. These are the 2 scripts I tried to use. What did I do wrong or what should I modify
Script #1
local gui = game.StarterGui.TutorialGUI.Frame1
function onTouched(hit)
if gui.Visible == false then
gui.Visible = true
end
end
script.Parent.Touched:Connect(function()
Script #2
local gui = game.StarterGui.TutorialGUI.Frame1
script.Parent.Touched:Connect(function()
if gui.Visible == false then
gui.Visible = true
end
end)

1 comment
Your script works fine until the brick gets touched by something other than a player.