Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Adjust all existing and future ProximityPrompt instances to trigger instantly
- local function adjustProximityPrompts()
- -- Loop through all descendants of the game
- for _, obj in pairs(game:GetDescendants()) do
- -- Check if the object is a ProximityPrompt
- if obj:IsA("ProximityPrompt") then
- -- Set HoldDuration to 0 for instant activation
- obj.HoldDuration = 0
- end
- end
- end
- -- Call function to adjust existing ProximityPrompts
- adjustProximityPrompts()
- -- Listen for any new ProximityPrompt instances being added
- game.DescendantAdded:Connect(function(descendant)
- if descendant:IsA("ProximityPrompt") then
- -- Set HoldDuration to 0 for new prompts
- descendant.HoldDuration = 0
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement