MaxproGlitcher

firetouchinterest obtenir des badge a distance un simple model de code peux être super utile

Oct 27th, 2025
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. -- Cela peut être utilisé pour les parcours de badges, où vous devez toucher un élément pour obtenir un badge.
  2. local player = game.Players.LocalPlayer
  3. local root = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
  4. if not root then return end
  5.  
  6. local descendants = workspace:GetDescendants()
  7. for i = 1, #descendants do
  8. local obj = descendants[i]
  9. if obj:IsA("BasePart") then
  10. local touch = obj:FindFirstChildOfClass("TouchTransmitter")
  11. if touch then
  12. firetouchinterest(root, obj, 0)
  13. firetouchinterest(root, obj, 1)
  14. end
  15. end
  16. end
  17.  
Advertisement
Add Comment
Please, Sign In to add comment