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

Know when the player is close, and presses a button?

Asked by 5 years ago

Ok, So In a previous post, (I made) I was very much helped, Thank you to everyone :D

Anyways so they helped me with the Input function (Changing a Model/Parts Transparency, and NoCollide, when pressing a key (e)

I was wondering, what should I do, to where the player has to be atleast 1-3 (Studs?) away from the Model, to make it transparent.

Ex. Im half way across the map, therefore nothing happens

Ex. #2 Im 1-3 Studs away from the Model, I then press E, and the Model turns transparent, and then It becomes NoCollide.


Just need help with the player detection/Distance part.

Thanks :D

0
you did not take a look at my answer. I talked about magnitude property. Check it out before duplicating questions. Zafirua 1348 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Crazyman32 has a great tutorial on this: https://youtu.be/japnJf9P34U

0
(I don't know if it's just me or if clicking embedded links on this site is broken, so if it's not working for you just copy and paste it into your url bar) User#1007 6 — 5y
1
Embedded links do not use link address as a text in its hyperlink. That is a poor embedded link Put the text inside the [Text](LinkHere) the Square bracket and the link in Curved brackets. Zafirua 1348 — 5y
Ad

Answer this question