Categories > Exploiting > Scripts >
I need really help with that.
Posted
Hi there, im making script, what will use fireclickdetector, so i downloaded a place, And I have a problem. The Screenshot shows that in the workspace.Map. there are several folders with the same names, and one of them has what I need, but I don't know how to do it
Replied
https://developer.roblox.com/en-us/api-reference/function/Instance/GetDescendants getdescendants loop can help you, i guess
Cancel
Post
https://imgur.com/a/oOomuUo
Replied
Hey! Thanks, but idk how to use. And the script, script searching ALL in workspace ClickDetectors, and will fire then. I need to fireclick to one ClickDetector
Cancel
Post
Replied
Use GetDecendants to get all the workspace clickdetectors
https://developer.roblox.com/en-us/api-reference/function/Instance/GetDescendants
Cancel
Post
I'm not lazy, I'm just highly motivated to do nothing. #I💚Dogs.
Replied
for i,v in pairs(workspace:GetDescendants()) do
if v:IsA("ClickDetector") then
fireclickdetector(v, 1)
end
end
idk if you still need this or not,
just fires all clickdetectors you can add extra stuff if needed
Cancel
Post
https://i.gyazo.com/8beb5d8b4adeea0463f8f5f21059b452.gif
novaline ontop
Executors I own: Synapse X, Asshurt/Sirhurt, Scriptware, Novaline
Replied
(basing off of MunDane's code example)
if your click detector also has a specific name you can make your script more accurate by checking the name.
for i,v in pairs(workspace:GetDescendants()) do
if v:IsA("ClickDetector") and v == "ClickDetectorName" then
fireclickdetector(v, 1)
end
end
also for better coding practice the for loop declares "i" and "v", the variable "i" is never used so we could just do
for _,v
and then rename the "v" variable to what were attempting to get for it to make more sense so
for _,clickDetector
hope I was able to help!
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post