
3.1k Views
138 Executions
ProximityPrompt and ClickDetector Firer (original)
Universal Script ๐
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
gui that shows the nearest prox prompts or cd near you and you can fire it (buttons: use/ method/ loop)
-- Services
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
-- Player & Character
local LocalPlayer = Players.LocalPlayer
local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
-- R15/R6 fallback for HumanoidRootPart
local function resolveHRP(char)
return char:FindFirstChild("HumanoidRootPart")
or char:FindFirstChild("UpperTorso")
or char:FindFirstChild("Torso")
end
local hrp = resolveHRP(character)
-- Configuration (editable via GUI)
local SCAN_RADIUS = 15
local PROX_RADIUS = 15
local INSTANT_METHOD = false
local AUTO_FIRE = false
local TOGGLE_KEY = Enum.KeyCode.RightControl
-- Helper: find world position of any interactable
local function getInteractablePosition(obj)
if obj:IsA("BasePart") then
return obj.Position
end
local part = obj:FindFirstAncestorWhichIsA("BasePart")
if part then
return part.Position
end
local mdl = obj:FindFirstAncestorWhichIsA("Model")
if mdl then
if mdl.PrimaryPart then
return mdl.PrimaryPart.Position
end
local bp = mdl:FindFirstChildWhichIsA("BasePart", true)
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!






