Make a simple E-to-Interact door

Thank you so much! You should make some more tutorials like this in the future.

By the way, what font do you use? I want that font lol

1 Like

Credits to BlackShibe, the man, the fox, the doge, the legend. It’s the Bahnschrift font.

1 Like

other than the userinputservice part why is the rest of the code on client… Its very easy for exploiters to exploit your code that way.

Let’s say that instead of a door we fired the map. Because we unanchor on the server it will happen for everybody.

Pretty certain I added tags on things using CollectionService. Once the RemoteEvent is fired, on the server, we can check if the door we’re “kicking” has the door tag, if not, then it can’t be affected. That is honestly what I meant

No??? It’s why we’re using CollectionService to check if the door has a tag named “Door” (or whatever it was named). Using exploits to add a tag would only work on them and not the entire game.

Doing this returns “Unable to cast Value to Object”. Anyone know why? Everything’s the same except I have an or statement also allowing unions.

remove the “isUnlocked” part, and the isabasepart part, we don’t really need those if you aren’t putting anything else in the door folder

1 Like

It’s still returning that same error. Is anyone else having the same issue?

Thanks a lot! I can not explain to you how much I needed something like this!

Are you sure what you’re checking is actually an instance?

Yes. I’m trying to add the tag to a union. This is my code:

local cans = game.Workspace.TrashCans:GetChildren()

local cs = game:GetService("CollectionService")

for _, door in ipairs(cans) do
		cs:AddTag("Door")
end
1 Like

Oh, you’re doing cs:AddTag("Door"), instead of implementing in the cans as the first argument. Do:

for _, door in ipairs(cans) do
    cs:AddTag(door, "Door");
end
2 Likes

with the new proximitydetector, it’ll be even easier!

2 Likes

I’m not the best with scripting, but your script if not door then return end doesn’t define the status of the door

I find it sad of how Roblox doesn’t make this default. They just spend time working with artists :sad:


Thank you for posting this!

Want to make something more efficient use proximity prompts.

2 Likes

please in the future post code blocks-it is difficult to read screenshots of code in a weird font

With the introduction of proximity prompts, this has become a lot easier.

Great Tutorial!

Its easy to understand, but…

Proximity Prompts:
Am I a joke to you?