How can a script turn another script into string?

Basically, I’m trying to string a whole script inside another script and check if it contains stuff by using the string.find, but after trying to get the script code, I get an error: lacking permission. Why would it lack permission when they are both server scripts? How can I turn the script into a string in any way? Or is it possible?


my current code

	local scriptCopy = script2:Clone()
	local source = scriptCopy.Source
	if string.find(source, "33") then
		print("The script contains '33'!")

You don’t have enough permission, you can’t get script source via script

1 Like

So there’s no way to see if a script contains, for example, a number?

Yes, but you can try using BindableFunction


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.