Editing A Single Line Using a Script

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

Would It be possible to edit 1 line of a script using a script.
Kinda like using script.Parent.Source but instead of changing the entire script, just one line of it would change.

Basically, kind of like a loader.
When someone enters text, and clicks a button it edits a single line of the code.

Depends. Can you explain it a little bit clearer?

1 Like

Can you show us your script? That would be helpful :+1:

he want to change a script with another script but script.Parent.Source changes the whole script so he want a way out to fix this problem

Yes.

So, I am making a Admin Panel Plugin as you might know.

What the plugin does is it inserts a whole working admin panel into your game.
When people click the plugin it prompts them for two things.
The group ID, and the minimum rank.

When they input the group id and minimum rank, I have it change a local variable I described in the plugin script.
Then once the entire configuration process is complete, it loads in the admin panel, and also edits the main file to how they configured it.

Maybe this will help…

That looks like it would work, only little bit confusing. I shall try to use that.

I don’t really see how to use:

local str = "1\
2\
3\
\
\
4"
print(#str:split"\n")