Universal Script 📌
5.2k Views
131 Executions

add fireproximityprompt and touchinterest functions

Universal Script 📌
asyran310810
asyran310810First script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

adds the fireproximityprompt() and firetouchinterest() function (firetouchinterest doesnt need a 3rd value and its solara supported) make sure to put on the top of your scripts

Updates

  1. Script edited: Create script

View Raw
local function fireproximityprompt(Obj, Amount, Skip)
    if Obj.ClassName == "ProximityPrompt" then 
        Amount = Amount or 1
        local PromptTime = Obj.HoldDuration
        if Skip then 
            Obj.HoldDuration = 0
        end
        for i = 1, Amount do 
            Obj:InputHoldBegin()
            if not Skip then 
                wait(Obj.HoldDuration)
            end
            Obj:InputHoldEnd()
        end
        Obj.HoldDuration = PromptTime
    else 
        error("userdata<ProximityPrompt> expected")
    end
end

local function firetouchinterest(totouch, whattotouchwith,nilvalue)
    pcall(function()
        local clone = totouch:Clone()
        local orgpos = totouch.CFrame
        totouch.CFrame = whattotouchwith.CFrame
        wait(0.5)
        totouch.CFrame = orgpos
        clone:Destroy()
    end)
end


Comments

2
Log in to join the conversation. Login
Wesd's profile picture
Wesd2 years ago(edited)

thoes who actually know how to code

2
anonymous09711e's profile picture
anonymous09711e2 years ago(edited)

ffr

1

Tags

More universal scripts

See all
Script hub
3.0M
18.5M
Bumped 3 hours ago

Script hub

Hall of Fame #1

KeylessVerified script badgeYARHM Hub KEYLESS 2026

Script hub
119.5k
193.9k
Bumped 8 hours ago
Key System
Script hub
180.9k
1.8M
Bumped 8 hours ago
Key System
Universal Script 📌
1.2k
2.6k
Bumped 9 hours ago
Script hub
60.2k
244.1k
Bumped 9 hours ago
Key System
Universal Script 📌
6.2k
53.5k
Bumped 11 hours ago