
3.4k Views
424 Executions
ProximityPrompt and ClickDetector Firer
Universal Script ๐
POOIPOOPPublished 10
2 years 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) idk if this works
--[[
WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
-- 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









... i want your script to be used by everyone
yo bro can you add fire nearest click detector script is so good