Create Custom Proximity Prompts a bit easier!

Hello everyone,

For the past few days I’ve been reworking my custom proximity prompts, and decided to post some of it here!
This uses the example script provided by roblox here. I’ve modified it to fix some issues and moved all the relevant code into a ModuleScript to make it easier to modify. It’s also made to work with the new Proximity Prompt Indicators!

Get it here

To get started place the script into StarterPlayerScripts,
Add a Style attribute to the prompt you want to use a custom style, and set its value to the name of the style you want to use.

To make new styles, duplicate the Default module and you can customize the Prompt under it, and if you have made any drastic changes or simply want different animations, you can modify the code within the module.

Since every prompt has its own module you can create vastly different prompts and then simply change its animations in the module!

example

In this second example you can also see how you can have multiple prompts under the same module, for instance here we change which prompt is being shown based on if we’re on keyboard or a gamepad/touch screen:

example2

If you have any questions, feel free to ask below!

40 Likes

Dang you got right on this :+1: pretty cool

4 Likes

This is super cool and I am currently testing out but it seems I can’t get it working, though I am following your steps

Nvm I figured it out, I forgot to turn off requires line of sight! lol

4 Likes