I created a ProximityPromptModule that also works on the client

I have created a ProximityPromptModule that works on the client too! (Default proximityprompt does not work at client)
This module can create a ProximityPrompt also works on client with this code:

local ProximityPromptModule = require(game.ServerScriptService.ProximityPromptModule)
if ProximityPromptModule:CheckInitRequired() then
	ProximityPromptModule:FirstInit()
end
local PromptInstance = ProximityPromptModule.new(script.Parent,{
	HoldDuration = 3,
	MaxShownDistance = 10,
	KeyCode = Enum.KeyCode.E,
	ObjectText = "This is test",
	ActionText = "Test"
})

PromptInstance.Event.Event:Connect(function(Player)
	print(Player.Name.." did fire event")
end)


Iā€™m wondering if I should make it open source and public.

Should I make public?
  • yes
  • no

0 voters

Can you give a video of it working in the client?

You can test game if you want :smile: :
https://www.roblox.com/games/5959694769/ProximityPromptModule

1 Like

The remove UI looks amazing, and it reminds me of Mad City.

1 Like

Same. I was about to say the same thing. lol