Advertisement
Steamhesaproblox

Roblox İnstant Proximity

May 17th, 2025
857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RBScript 1.21 KB | Gaming | 0 0
  1. local Players = game:GetService("Players")
  2.  
  3. local function setupPrompt(prompt)
  4.     if prompt:IsA("ProximityPrompt") then
  5.         -- Tüm ProximityPrompt'ların HoldDuration'ını 0 yap
  6.         prompt.HoldDuration = 0
  7.  
  8.         -- Eğer LootPrompt ise Enabled kontrolü ekle
  9.         if prompt.Name == "LootPrompt" then
  10.             prompt.Enabled = true
  11.  
  12.             -- Enabled değişimini dinle
  13.             prompt:GetPropertyChangedSignal("Enabled"):Connect(function()
  14.                 if not prompt.Enabled then
  15.                     prompt.Enabled = true
  16.                 end
  17.             end)
  18.         end
  19.     end
  20. end
  21.  
  22. -- Oyundaki tüm ProximityPrompt'ları kontrol et
  23. for _, descendant in pairs(game:GetDescendants()) do
  24.     setupPrompt(descendant)
  25. end
  26.  
  27. -- Yeni eklenen objeleri dinle
  28. game.DescendantAdded:Connect(function(descendant)
  29.     setupPrompt(descendant)
  30. end)
  31.  
  32. -- Oyuncuların karakteri geldiğinde kontrol et
  33. Players.PlayerAdded:Connect(function(player)
  34.     player.CharacterAdded:Connect(function(character)
  35.         -- Karakter içindeki ProximityPrompt'ları kontrol et
  36.         for _, descendant in pairs(character:GetDescendants()) do
  37.             setupPrompt(descendant)
  38.         end
  39.  
  40.         -- Karaktere yeni eklenen objeleri de dinle
  41.         character.DescendantAdded:Connect(function(descendant)
  42.             setupPrompt(descendant)
  43.         end)
  44.     end)
  45. end)
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement