Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Tab={}
- for i,v in next, workspace:GetDescendants() do
- if v:IsA'ClickDetector' then
- table.insert(Tab,v)
- end
- end
- local plr=game:GetService'Players'.LocalPlayer
- while wait(0.4) do
- for i,v in next,Tab do
- if v:IsA'ClickDetector' then
- if fireclickdetector then
- pcall(function()
- local mag = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Parent.Position).magnitude
- if mag < 11 then
- fireclickdetector(v)
- end
- end)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement