so im having trouble doing this
so i wanted to make all local scripts disabled Using One LocalScript
is there a way to do it?
this is the situation

so im having trouble doing this
so i wanted to make all local scripts disabled Using One LocalScript
is there a way to do it?
this is the situation

You can do that using GetDescendants() and checking if the ClassName is “LocalScript”
for k,v in pairs(script.Parent:GetDescendants()) do
if v.ClassName == "LocalScript" and v ~= script then
v.Disabled = true
end
end
if v ~= script doesn’t work, you can do: v.Name ~= script.Name instead.
i don’t get is there a problem with the script?
With mine? no. I only sent you the portion of code you would use to disable all the scripts that are in a lower child hierarchy than the script thats doing the Disabling. If you only use what I post then it does this immediately. I assume you have a script to run this on command or when a certain condition is met.
ah well okay thanks for letting me know