Forum > Scripts >

Print elements and paths

Posts: 1

Threads: 1

Joined: Apr, 2023

Reputation: 0

Posted

--Paths
 
for _, object in pairs(game:GetDescendants()) do
if object:IsA("Script")or object:IsA("LocalScript")then
print(object:GetFullName())
print(object.Source)
end
end
 
--Elements
for _, object in pairs(game:GetDescendants()) do
print(object.Name)
end

 

  • 1

Posts: 607

Threads: 54

Joined: Oct, 2022

Reputation: 40

Replied

Instead of making object the variable. You could use _,v or I,v. I stands for index. V stands for value. The index is like numbers on the list counting how many lines they are. The value is the content of the list. For an example "1. (Index) Cheese (Value)".

  • 0

Owner @Pluto - The Best Executor, External and Script Hub

Download Here! - https://pluto.ad

Users viewing this thread:

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