Advertisement
ExodiaForce

Blackout: Revival | Instant Interact Script.

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