Hello, is there a way to change all clickdetector icons in workspace? could you help me? I have too many clickdetectors so i can't change them by hand.
✓ ANSWER ACCEPTED
How can i make all clickdetector icons change? (All clickdetectors in workspace)
1 answer
✓ Accepted answer
This may or may not be laggy depending on how many parts your place has, but GetDescendants is a great way to locate every child within' an array.
local CursorId = "2287179355" -- id of the decal you want the mouse changed to
for _,v in pairs(workspace:GetDescendants()) do
if v:IsA('ClickDetector') then
v.CursorIcon = "rbxassetid://"..CursorId
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You are awesome works with no lag.
Glad to hear.