Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local Tab={}
  2. for i,v in next, workspace:GetDescendants() do
  3. if v:IsA'ClickDetector' then
  4. table.insert(Tab,v)
  5. end
  6. end
  7. local plr=game:GetService'Players'.LocalPlayer
  8. while wait(0.4) do
  9. for i,v in next,Tab do
  10. if v:IsA'ClickDetector' then
  11. if fireclickdetector then
  12. pcall(function()
  13. local mag = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Parent.Position).magnitude
  14. if mag < 11 then
  15. fireclickdetector(v)
  16. end
  17. end)
  18. end
  19. end
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement