Proximity Prompt Customizer

This is fabulous! I’ve also found that my games lack style in proximity prompts because I never know how to write the code to customize them. Now that i’ve found this I can never go back.

Great work!

2 Likes

I ran into an issue similar to this when I first tried to use this model. The issue may not necessarily be any ui but rather that you have the “Requires Line Of Sight” value checked in the proximity prompt.

Not sure if that fixes your issue but that’s how I solved my similar issue.

2 Likes

it will be MUCH easier if you guys put a customize properties in properties tab

3 Likes

Good job. This is so good. I will use this for sure! :+1:

1 Like

This surely gave me a start for me to make my own prompt handler! I made one just like the game DOORS has!

1 Like

If anyone is getting the error “Enum.Font.Unknown can't be passed to TextService:GetTextSize()” use my revision of this asset which fixes this issue by getting the font name from the FontFace and plugging into Enum.Font.

local actionTextFontFace = script.Default.PromptFrame.ActionText.FontFace
local actionTextFontFamily = tostring(actionTextFontFace.Family)
local actionTextFontFamilySplit = actionTextFontFamily:split("rbxasset://fonts/families/")
local actionTextFontFamilySplitA = actionTextFontFamilySplit[2]
local actionTextFontFamilySplitASplit = actionTextFontFamilySplitA:split(".json")
local actionTextFont = actionTextFontFamilySplitASplit[1]
local objectTextFontFace = script.Default.PromptFrame.ObjectText.FontFace
local objectTextFontFamily = tostring(objectTextFontFace.Family)
local objectTextFontFamilySplit = objectTextFontFamily:split("rbxasset://fonts/families/")
local objectTextFontFamilySplitA = objectTextFontFamilySplit[2]
local objectTextFontFamilySplitASplit = objectTextFontFamilySplitA:split(".json")
local objectTextFont = objectTextFontFamilySplitASplit[1]
2 Likes

ugh yeah i need to update that sorry. haven’t updated since fonts have been updated.

2 Likes

It’s okay! Also if you’d like to me to take my revision of the marketplace and send you the new version I made I would be happy to do so.

1 Like

Never saw a Roblox Staff so motivated to help the Community so much! (By making Plug-Ins and resources I mean)

Didn’t read the entire post, but would we be able to have a Plug-In for this? Would be great!

3 Likes

Is there a way to force the progress bar size to match with everything?

local function setUpCircularProgressBar(bar)
	local progress = bar.Progress
	progress.Changed:Connect(function(value)
		bar.Size = UDim2.new(2.72,0,value,0)
	end)
end

I would also appericate if somebody could fix the weird bug where it takes a delay to actually tween everything out. (The black background stays even after the letter disappears.)
My UI.
uifgf.rbxm (11.5 KB)

2 Likes
local function setUpCircularProgressBar(bar)
	local progress = bar.Progress
	progress.Changed:Connect(function(value)
		bar.Size = UDim2.new(1,0,value,0)
	end)
end

If the grey frame is a child of the black one, then it SHOULD work.

1 Like

fixed! updated GetTextSize to GetTextBoundsAsync in two places.

3 Likes

is there a way to make the proximity prompt on a gui and not a billboardgui? example: Site-25: Présentation nouvelle zone carcérale et ses environs. - YouTube

1 Like

Definitely! Right now this is set up to work only with billboard guis, so you’d need to change your default prompt BillboardGui (called Default) to just be a transparent frame of the same size, and comment out the BillboardGui specific parts of code (setting adornee, sizeoffset, i think thats it). And then you just need to set the position of your frame to be where you want it to be on screen.

screencast 2023-04-10 17-51-31

Note that if you have multiple proximity prompts showing at the same time you’ll need some logic for repositioning them so they don’t overlap.

4 Likes

Hi, so I searched out things and It’s not working! I’ve deleted the adornee and sizeoffset and changed the Active to Enable and there is 0 error but it’s not working. Could you give me the script you made on the gif?

Did you set your proximity prompt style to Custom?

yeah, I did but it’s not working.

thinking about using this, very nice and time preserving

Make sure the prompt you want it to work on has the ‘Custom’ option instead of the default one.

Hello, could you provide a better tutorial, or send the file itself, because your explenation is not clear enough for me. (i would prefer if you sended the roblox code though)

Thanks!

1 Like