Advertisement
Keimu

Hospital Tycoon Auto Collect Loot Boxes

Feb 24th, 2023
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2. local char = plr.Character
  3.  
  4. if #game:GetService("Workspace").Loots:GetChildren() ~= 0 then
  5. for _, v in pairs(game:GetService("Workspace").Loots:GetChildren()) do
  6. firetouchinterest(char.HumanoidRootPart, v.Detector, 0)
  7. firetouchinterest(char.HumanoidRootPart, v.Detector, 1)
  8. end
  9. end
  10. game:GetService("Workspace").Loots.ChildAdded:Connect(function(v)
  11. repeat task.wait() until v:FindFirstChild("Detector")
  12. firetouchinterest(char.HumanoidRootPart, v.Detector, 0)
  13. firetouchinterest(char.HumanoidRootPart, v.Detector, 1)
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement