Proximity Prompt Release

That’s good that it’s fixed, have a nice day!

1 Like

That’s not a bug, you most likely have “Requires align of sight” enabled.
In order to fix this you can go to the proximity prompt settings and simply disable it.


with the part being inside the other part it’ll classifies it as a object thats blocking its line of sight from the middle of the part to you.

Edit - Fixed my terrible grammar

1 Like

Thank you for that, I didn’t even know what that property was for. I thought it was a bug until you told me. :smiley:

1 Like

No worries, Its a new object. Not a lot of people know how to use it yet

1 Like

This is a great and useful tool that will help a lot of developers! Glad to see that Roblox is heading towards the right direction!

This might’ve fit better as a thread in Developer Hub but if the Proximity Prompt team is still taking feedback for the feature and its documentation, just wanted to make a quick mention I saw a bit ago. This is for ProximityPrompt.Style’s code sample to emulate the default UI.

local LocalPlayer = Players.LocalPlayer
while LocalPlayer == nil do
	Players.ChildAdded:wait()
	LocalPlayer = Players.LocalPlayer
end

LocalPlayer is implicitly available to all LocalScripts[1]. This method of waiting for the LocalPlayer is archaic and doesn’t need to be used, unless there’s some kind of edge case this is accounting for. Would be great to remove the while loop so newer developers don’t learn this old habit!

11 Likes

Thank you. I had a game that we needed interaction like this but we had to create it from scratch. This method seems 10 times easier and seems more clean.

4 Likes

In my opinion, it will make tons of amateur Roblox creations feel uniform. I think Roblox should treat itself not like a game, but an engine. We should be beyond the days of Roblox games being tiny little creations nobody cares for. Adopt Me! is one of the largest games on the planet, with an average of about 300k players at a time. Poorly scripted games somehow have 15k+ consecutive players COUGH COLOR BLOCK However, I do like the UI.

5 Likes

Thank you, works brilliantly and more effectively than click detectors!

https://gyazo.com/e1186a5062488163de5511b1f0a9bcbb

5 Likes

This update is great, it will really boost the quality of a lot of game experiences. Writing a system similar has also been a lengthy process. Nice to have a streamlined approach. Well done to the team on getting it out so soon. It is easy to customize and incorporate into any game. Interested to see the performance implications. Would also be nice to see documentation on how the object goes about detecting the players within radius of the proximity prompt.

Here is an unlockable chest using the proximity prompt;

1 Like

You can easily create a circle by making a square frame and then using a UICorner with a scale of 1.

2 Likes

You can disable the “RequiresLineOfSight” Property.

1 Like

But then how would I only have it show a certain sector of the circle? This also wouldn’t work if you wanted it hollow.

1 Like

Outstanding! I was just starting to feel dread because I knew in the current game I was working on, I had gotten to the stage of development that I have to create proximity prompts again, but now the API makes it much simpler!

Can’t wait to use this.

2 Likes

Good. Higher quality amateur games are what we want.

With that being said, a developer who actually wants to put effort in could easily, heavily customize this whole system. The API just takes away the dirty behind the scenes work, unless what you’re looking for is fundamentally different than what this shows.

1 Like

For a number of reasons, yes.
A maze game for instance is a quick and easy example. A player must find the key to the exit. They can rearrange their “line of sight”, pick it up, and head back over to their normal line of sight, all without moving.

With the server-side this wouldn’t happen. It is a fairly obscure issue that can probably be fixed with some simple scripting from the developer themselves by implementing a server-sided check within the function, but overall it would be nice if a future update presented this check on the server side.

2 Likes

yes, otherwise they would have updated the beta post

If the player is on mobile, are they also able to use the Proxmity Prompt?

I think so as long as ProximityPrompt.ClickablePrompt is on.

This is going to be an amazing feature, thank you for creating it! Definitely better than having to script my own.

I’m just curious if there will be any other styles added or will it stay as Default/Custom?