ADVERTISEMENTREMOVE ADS
Game icon

Proximity script (universal)

PARKOUR
5 months ago
Script preview thumbnail
Script Preview

Description

3 buttons
instant proximity

infinite proximity range

fire all proximity

Features:

  • button
ADVERTISEMENTREMOVE ADS
81 Lines • 2.1 KiB
Raw
--// GUI Creation
local ScreenGui = Instance.new("ScreenGui")
local UI = Instance.new("Frame")
local InstantBtn = Instance.new("TextButton")
local InfiniteBtn = Instance.new("TextButton")
local FireAllBtn = Instance.new("TextButton")
ScreenGui.Name = "ProximityTool"
ScreenGui.Parent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ResetOnSpawn = false
UI.Name = "MainUI"
UI.Parent = ScreenGui
UI.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
UI.Position = UDim2.new(0, 20, 0, 200)
UI.Size = UDim2.new(0, 160, 0, 150)
UI.Active = true
UI.Draggable = true
local buttons = {InstantBtn, InfiniteBtn, FireAllBtn}
local names = {"Instant Cooldown", "Infinite Range", "Fire All"}
for i, btn in ipairs(buttons) do
btn.Parent = UI
btn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
btn.Position = UDim2.new(0, 10, 0, 10 + (i - 1) * 45)
btn.Size = UDim2.new(1, -20, 0, 40)
btn.Font = Enum.Font.SourceSansBold
btn.TextColor3 = Color3.new(1, 1, 1)
btn.TextSize = 16
btn.Text = names[i]
end
--// Core Functions
local function applyInstantCooldown()
for _, prompt in ipairs(workspace:GetDescendants()) do
if prompt:IsA("ProximityPrompt") then
prompt.HoldDuration = 0
end
end
end
local function applyInfiniteRange()
for _, prompt in ipairs(workspace:GetDescendants()) do
if prompt:IsA("ProximityPrompt") then
prompt.MaxActivationDistance = math.huge
end
end
end
local function fireAllProximities()
local player = game:GetService("Players").LocalPlayer
for _, prompt in ipairs(workspace:GetDescendants()) do
if prompt:IsA("ProximityPrompt") and prompt:IsDescendantOf(workspace) then
fireproximityprompt(prompt)
end
end
end
--// Button Connections
InstantBtn.MouseButton1Click:Connect(function()
applyInstantCooldown()
end)
InfiniteBtn.MouseButton1Click:Connect(function()
applyInfiniteRange()
end)
FireAllBtn.MouseButton1Click:Connect(function()
fireAllProximities()
end)
--// Auto-loop Instant Cooldown every 60s
task.spawn(function()
while true do
applyInstantCooldown()
task.wait(60)
end
end)
ADVERTISEMENTREMOVE ADS

Comments

5 comments
to add a comment
ph

Why chatgpt man kill yourself

1
0
mi

@photon only used it on this bc building the infinite range was retarted asf

0
0
ph

@miles yea sure buddy everything youve posted is ai garbage i bet you dont even know what hookmetamethod is

0
0
ph

unskilled loser needs gpt to code lololol

2
0
ni

just use IY fireproximityprompts atp 😭

0
0
ADVERTISEMENTREMOVE ADS