So, I’ve been using a script that changes proximity prompts to a custom ui
However, it has come to my attention (thank you Squid) that mobile users cannot interact with these prompts, how can I make this a possibility?
Here is the code for the localscript
local ProximityPromptService = game:GetService("ProximityPromptService")
ProximityPromptService.PromptShown:Connect(function(promptInstance: ProximityPrompt)
if promptInstance.Style == Enum.ProximityPromptStyle.Default then return end
local CustomProximity = game.ReplicatedStorage:WaitForChild("CustomProximity"):Clone()
CustomProximity.ObjectText.Text = promptInstance.ObjectText
CustomProximity.ActionText.Text = "["..promptInstance.KeyboardKeyCode.Name.."] - " ..promptInstance.ActionText
CustomProximity.Parent = promptInstance.Parent
promptInstance.PromptHidden:Once(function()
if CustomProximity then
CustomProximity:Destroy()
end
end)
end)