Salutations. I am working on my event center. I don't want trainees or guests zooming their camera through the transparent wall and pressing buttons that only HRs get access to. I tried doing stuff with Popper cam and looked up tons of stuff about this and cannot seem to find anything that works.
https://prnt.sc/r9mti5 <-- There are the buttons that I don't want other people besides HRs pressing. There is an invisible wall before you get on the stage that only lets HRs+ in.
Please, do not get angered at the face I am "requesting" something. This is just the fact I have been trying to figure this out for a while and I am angered with the fact nothing has helped.
local ClickDetector = script.Parent.ClickDetector --Add a clickdetector to your part and parent it. local Brick = script.Parent.Parent.Part --Parent everything you need. (Lights, Parts and more). ClickDetector.MouseClick:Connect(function (player) if player:GetRankInGroup(5367465) >= 30 then --Enter your groupid and the rankid+ who is allowed to use the buttons. Brick.Transparency = 1 --Add everything that should happen when someone hits the button. end end)