Proximity Prompt Script

btw find is deprecated just wanted to point that out

What do you mean by “find is deprecated”?

1 Like

He means that it may be changed

They just fixed it, please disregard my statement. (I meant findFirstChild, find being deprecated.)

1 Like

Have you tested the script I made some changes so copy and paste again.

Ok. I will right now.

Mode: Testing…

Nope, doesn’t work… :pensive:

Any error? 30 wordsssssssssssss

XD. No.

wordssssssssssssswefsfdsf

Do you have either level_2 or level_3 keycards in your backpack or equipped?

local Access = {
    "Level_2",
    "Level_3"
}
local ProximityPrompt = script.Parent
local Door = script.Parent.Parent.Parent.Parent.Parent.Door

ProximityPrompt.Triggered:Connect(function(player)
	if ProximityPrompt.ActionText == "Open" then
	
    	for i,v in pairs(Access) do
           if player.Character:FindFirstChild(v) or player.Backpack:FindFirstChild(v) then
               Door.Transparency = 1
            	Door.CanCollide = false
                 ProximityPrompt.ActionText = "Close"
            	print(player.Name)
    
                break
           end
    	end
    end
end)

I made a mistake try this

Ok.

gflkmdgmnfdgjnkfdjkngskdmvkld

I hate that you need 30+ characters. :roll_eyes:

Hey, did it ever work out? 30 words sssssgf343u84rfuvbfjdgdfgdfgf

:pensive: still broken… :pensive:

should I send a video?

Maybe none of these things exist and that’s why the code doesn’t enter the if.

What do you mean? :confused:

That all of the if arguments are not present.

?

Yeah but I have the level 4 card…

So it does exist. :confused:

wordssss