Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

(Answered) Is it possible to print the contents of a Script?

From a Script (Not LocalScript!), would it be possible for me to print the contents of a seperate Script?

Not sure if its possible but try using a table and a global value and making the global value the table

4 comments

0

i dunno, you can try print(Script.Source) but that is all I have really

0

Attempting to do that causes an error saying "The current identity (2) cannot Source (lacking permission 1). This happened when I executed a script using the in-game Developer Console command bar on my own game.

0

do you want the contents of the script as a string? Or like print the values of the script?

0

Not sure if its possible but try using a table and a global value and making the global value the table.

1 answer

"Not sure if its possible but try using a table and a global value and making the global value the table" - aiming4u

This discussion is preserved as it was. New answers, comments, and votes are closed.