Basically I am recreating a game with a friend at the moment, and by recreate I mean I want the games to be inseperable. But for that I need A ProximityPromt to stay on screen in the sense of:
(for context I am recreating scp containment breach since its open source and has no copyright I can just use all models and textures from the source code.)
The Prompt should be always visible even when your back is to its part.
It should only hover close to the part unless youre directly looking at the part.
It should always stay until you go out of reach.
Example:
I haven’t really found anything as of yet that is why I am making this. (plus I just saw I can post now so first post lol)
Can you go into detail? I searched it up and don’t quite get how you could use it. I am not a really good scripter. I’ve only done small things here since a few months ago or something.
Soo uh I think I kind of get it… So uhh I’m just gonna mark it as a solution. Thank you Kind Stranger. I still have to play around with it to fully understand it. I hope I can ask you for help along the way!
Im sorry to bother you but I cant really think of a way to utilize dotproduct. It probably is th answer I just dont know how to apply it you know? Maybe you have an Idea ??
Basically code a custom prompt UI that instead of being under BillboardGui is under a ScreenGui.
Hook it up to the PromptAppear signal from ProximityPromptService and whenever this signal fires, update the position of the prompt UI and make it visible if it was hidden.
Update the prompt position everytime the part has changed positions relative to the camera.
So if you turned the camera, it would move with it.
Try not to use Tweens for this as it could cause issues if you were quickly changing adornees.
For mine I used a spring module, I suggest the one below as it’s very good.
[Spring | Nevermore]
If you want the UI to stay on screen even when backwards to the prompt, clamp the values to the screen size.