Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 8 years ago

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

Log in to vote
0
Answered by
RAYAN1565 691 Moderation Voter
8 years ago

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)

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. User#11440 120 — 8y
Ad

Answer this question