fireclickdetector(ClickDetector)
fires the ClickDetector when in range of MaxActivationDistance.
if you want to fire every ClickDetector:
- without tp
for i,v in game:GetDescendants() do if v:IsA("ClickDetector") then fireclickdetector(v) end end - with tp
local hrp = game.Players.LocalPlayer.Character.HumanoidRootPart local hrppos = hrp.CFrame for i,v in game:GetDescendants() do if v:IsA("ClickDetector") then fireclickdetector(v) hrp.CFrame = v.CFrame end end hrp.CFrame = hrppos