Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I get a specific line of code in a script?

Asked by 4 years ago

Let's say the script is this:

local food = "pizza"
print(food)
print("Yum")

And if another script is trying to get line 2, how would it do that? And how can I get the total lines code? Thanks!

0
Elaborate more. You are very vague. NickIsANuke 217 — 4y
0
You can't. Ziffixture 6913 — 4y
0
0
Then your problem is solved, it can get your lines. Ziffixture 6913 — 4y
View all comments (2 more)
0
There isn't anything you can do to read lines within your scripts unless you're using an external service such as a plugin Ziffixture 6913 — 4y
0
You can use module script to share specific line of code. Yuuwa0519 197 — 4y

Answer this question