Advertisement
ExodiaForce

Blackout: Revival | Instant Interact Script.

Oct 28th, 2024 (edited)
564
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. local prompts = {}
  2. local function check(v)
  3.     if v:IsA("ProximityPrompt") then
  4.          table.insert(prompts,v)
  5.     end
  6. end
  7. for i,v in ipairs(workspace:GetDescendants()) do
  8.     check(v)
  9. end
  10. workspace.DescendantAdded:Connect(check)
  11. game.UserInputService.InputBegan:Connect(function(i)
  12.     if i.KeyCode == Enum.KeyCode.E then
  13.         for i,v in ipairs(prompts) do
  14.             v.HoldDuration = 0.01
  15.             v:InputHoldBegin();
  16.             task.delay(0.05,function() v:InputHoldEnd() end)
  17.         end
  18.     end
  19. end)    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement