How would I hide every proximity prompt in a place?
I've been working on a security camera system and I need every proximity prompt to be hidden when the cameras are being used. However I've been struggling. I've tried using a for loop however no look.
1 | local function DisablePrompts(Parentt) |
2 | for i = 1 , #Parentt:GetChildren() do |
3 | if Parentt:GetChildren() [ i ] :IsA( "ProximityPrompt" ) then |
4 | Parentt:GetChildren() [ i ] .MaxActivationDistance = 0 |
6 | DisablePrompts(Parentt:GetChildren() [ i ] ) |
I hope someone has a solution. Thank you in advanced!