The service isn’t required.
You can do:
script.Parent.Triggered
I don’t mind making new scripts for everything I just need this fixed.
The service isn’t required.
You can do:
script.Parent.Triggered
I don’t mind making new scripts for everything I just need this fixed.
What exactly is “Level_2”, “Level_3” etc in your code?
They are all keycards to access doors
If they are tools then you should do
if player.Character.Backpack:FindFirstChild("Level_1")
and so on
I know that but if they have it equipped, it isn’t in their backpack.
Action text is what happens when you toggle it.
It doesn’t do anything.
Just makes the display nicer.
Its one of the properties of a Proximity Prompt
I saw that. LOLOLOL Niceeeee try
Hahaha shhh let’s pretend you never see anything
And I have already tried that.
Try this
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
break
else
return
end
end
Door.Transparency = 1
Door.CanCollide = false
ProximityPrompt.ActionText = "Close"
print(player.Name)
end
end)
btw find is deprecated just wanted to point that out
What do you mean by “find is deprecated”?
He means that it may be changed
They just fixed it, please disregard my statement. (I meant findFirstChild, find being deprecated.)
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…
Any error? 30 wordsssssssssssss