function onTouched (part)
local h = part.Parent:findFirstChild("Humanoid")
local gui = game.Players.LocalPlayer.PlayerGui.ScreenGui
if h~= nil then
gui.BG.Visible = true
gui.No.Visible = true
gui.Question.Visible = true
gui.Yes.Visible = true
script.Parent.Transparency = 0
end
end
script.Parent.Touched:connect(onTouched)
((Basically this script opens up 3 guis when the brick the script is in is touched))
Ideas? Comments?

2 comments
Code block your code by clicking that blue lua button and pasting the script inside of the ~ lines.
Fixed, thanks.