GETFREEROBUX

Arsenal (The Classic)

May 23rd, 2024
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.18 KB | None | 0 0
  1. local function fireTouchInterest(part)
  2.     local player = game.Players.LocalPlayer
  3.     local character = player.Character or player.CharacterAdded:Wait()
  4.     local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  5.  
  6.     firetouchinterest(humanoidRootPart, part, 0)
  7.     wait(0.1) -- Adding a delay of 0.1 seconds
  8.     firetouchinterest(humanoidRootPart, part, 1)
  9. end
  10. local tixNames = {
  11.     "TIX1",
  12.     "TIX2",
  13.     "TIX3",
  14.     "TIX4",
  15.     "TIX5",
  16.     "TIX6",
  17.     "TIX7",
  18.     "TIX8",
  19.     "TIX9",
  20.     "TIX10"
  21. }
  22.  
  23. local roCoinNames = {
  24.     "RoCoin11",
  25.     "RoCoin12",
  26.     "RoCoin13",
  27.     "RoCoin14",
  28.     "RoCoin15"
  29. }
  30.  
  31. local function processPartsWithDelay(partNames)
  32.     for _, partName in ipairs(partNames) do
  33.         local part = game.Workspace.Map.Currency:FindFirstChild(partName)
  34.         if part then
  35.             fireTouchInterest(part)
  36.         else
  37.             warn("Part " .. partName .. " not found in game.Workspace.Map.Currency")
  38.         end
  39.         wait(1) -- Adding a delay of 1 seconds between each part
  40.     end
  41. end
  42. local startTime = tick()
  43. while tick() - startTime < 20 do
  44.     processPartsWithDelay(tixNames)
  45.     processPartsWithDelay(roCoinNames)
  46. end
Add Comment
Please, Sign In to add comment