Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- CUSTOM PROXIMITY PROMPT TUTORIAL by BLOXIANCODE youtube.com/c/BloxianCode
- -- Tutorial: https://youtu.be/nGXUxZZyW9I
- local PS = game:GetService("ProximityPromptService")
- local PromptActions = require(game.ReplicatedStorage.PromptActions)
- PS.PromptShown:Connect(function(prompt, inputType) --prompt, inputType is keyboard/touchpad
- if prompt.Style == Enum.ProximityPromptStyle.Default then
- return
- end
- local UI = prompt.BillboardUI
- UI.Enabled = true
- end)
- PS.PromptHidden:Connect(function(prompt, inputType)
- if prompt.Style == Enum.ProximityPromptStyle.Default then
- return
- end
- local UI = prompt.BillboardUI
- UI.Enabled = false
- end)
- PS.PromptTriggered:Connect(function(prompt, player)
- if prompt.Style == Enum.ProximityPromptStyle.Default then
- return
- end
- PromptActions.createAction(prompt, player)
- end)
Advertisement
Add Comment
Please, Sign In to add comment