Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can someone help me? I'm still having trouble with ContextActionService?

I've read the wiki a ton of times, but I don't get it. can someone give me a script that when you get close to a door, it gives the option to open it. I feel if I can look at it, ill be able to figure it out. P.S. I don't want the script just to be lazy. I want to learn how to do it but im having ALOT of trouble

1 answer

There could be a way more simpler way to do this. Maybe what you can do is place a transparent brick that the character collides through. And by touching the transparent, cancollide brick, opens up a GUI that asks if you want to open it. You would use the onTouch event.

(That transparent, cancollide brick would be obviously placed in front of the door)

1 comment

0

Eh, this would work but it's not the best way. If the game's FE, scripts can't access the PlayerGui, so remote events would be required. You could make a LocalScript inside the player detect this, but if it were me, I wouldn't use this methood.

This discussion is preserved as it was. New answers, comments, and votes are closed.