So, I'm trying to make this GUI visible when you touch a brick.
Yes, I have tested this several times and the event is only triggered by a player as long as the brick does not get hit by an un-anchored brick.
The entire script is designed to be a Jumpscare that makes other blocks in the Workspace visible, and immediately after a Black GUI pops up. The script goes as follows:
local jumpp = game.Workspace.jumpp
local dooropen = game.Workspace.Dooropen
script.Parent.Touched:connect(function(player)
script.Disabled = true
jumpp.Head.Transparency = 0
jumpp.LeftArm.Transparency = 0
jumpp.LeftArmb.Transparency = 0
jumpp.LeftArmc.Transparency = 0
jumpp.LeftArmd.Transparency = 0
jumpp.RightArm.Transparency = 0
jumpp.RightArmb.Transparency = 0
jumpp.RightArmc.Transparency = 0
jumpp.RightArmd.Transparency = 0
jumpp.LeftLeg.Transparency = 0
jumpp.LeftLegb.Transparency = 0
jumpp.LeftLegc.Transparency = 0
jumpp.LeftLegd.Transparency = 0
jumpp.RightLeg.Transparency = 0
jumpp.RightLegb.Transparency = 0
jumpp.RightLegc.Transparency = 0
jumpp.RightLegd.Transparency = 0
jumpp.Torso.Transparency = 0
jumpp.Torsob.Transparency = 0
jumpp.Torsoc.Transparency = 0
jumpp.Torsod.Transparency = 0
wait(.1)
game.Lighting.scare.Parent = player.PlayerGui
dooropen.Window.Transparency = 1
dooropen.Windowinv.Transparency = 0
dooropen.Windowframe.Transparency = 1
dooropen.Windowframeinv.Transparency = 0
dooropen.DoorBottom.Transparency = 1
dooropen.DoorBottominv.Transparency = 0
dooropen.Window.CanCollide = false
dooropen.Windowinv.CanCollide = true
dooropen.Windowframe.CanCollide = false
dooropen.Windowframeinv.CanCollide = true
dooropen.DoorBottom.CanCollide = false
dooropen.DoorBottominv.CanCollide = true
jumpp:Destroy()
end)
--This is all written in a Regular Script.
According to the Output, the real issue is on line 28, the line where the GUI gets moved from Lighting to PlayerGui. "PlayerGui is not a valid member of Part" I'm not sure how it's incorrect. I used parameters in the function and specifically used them on line 28.
Thanks!

2 comments
Yes, it did. But I don't want a debounce. Line five is necessary because the scare is only supposed to occur once. :P EDIT: Thanks a bunch Stigma. I just had to edit a few lines of code and get rid of the Debounce. I really appreciate it.
No problem. :) Happy to help. :)