
5.2k Views
131 Executions
add fireproximityprompt and touchinterest functions
Universal Script 📌
asyran310810First script
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
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
Script edited: Create script
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









thoes who actually know how to code
ffr