Categories > Exploiting > Scripts >

I need really help with that.

Posts: 11

Threads: 5

Joined: Mar, 2022

Reputation: 0

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

  • 0

tar

CoolNickname

Posts: 142

Threads: 15

Joined: Jul, 2021

Reputation: 1

Replied

https://developer.roblox.com/en-us/api-reference/function/Instance/GetDescendants getdescendants loop can help you, i guess

  • 1

https://imgur.com/a/oOomuUo

Posts: 11

Threads: 5

Joined: Mar, 2022

Reputation: 0

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

  • 0

Syraxes_

Web Developer

vip

Posts: 1289

Threads: 40

Joined: Jul, 2021

Reputation: 63

Replied

Use GetDecendants to get all the workspace clickdetectors

 

   https://developer.roblox.com/en-us/api-reference/function/Instance/GetDescendants

  • 0

I'm not lazy, I'm just highly motivated to do nothing. #I💚Dogs.

MunDane

RemuDane

Posts: 11

Threads: 4

Joined: Aug, 2021

Reputation: 0

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

  • 1

https://i.gyazo.com/8beb5d8b4adeea0463f8f5f21059b452.gif

Posts: 150

Threads: 9

Joined: Feb, 2022

Reputation: -34

Replied

@MunDane I would also unfire it after

  • 0

novaline ontop

 

Executors I own: Synapse X, Asshurt/Sirhurt, Scriptware, Novaline

Nolix

use vantra hub

Posts: 435

Threads: 61

Joined: Mar, 2022

Reputation: 11

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!

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )