Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local prompts = {}
- local function check(v)
- if v:IsA("ProximityPrompt") then
- if v.Name == "OpenLootTable" or v.Name == "LockMinigame" or v.Name == "TalkWithNPC" or v.Name == "Custom" or v.Name == "OpenDoor" then
- table.insert(prompts,v)
- end
- end
- end
- for i,v in ipairs(workspace:GetDescendants()) do
- check(v)
- end
- workspace.DescendantAdded:Connect(check)
- game.UserInputService.InputBegan:Connect(function(i)
- if i.KeyCode == Enum.KeyCode.E then
- for i,v in ipairs(prompts) do
- v.HoldDuration = 0.01
- v:InputHoldBegin();
- task.delay(0.02,function() v:InputHoldEnd() end)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement