generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How would this go:

Previous Thread :: Next Thread 
Aerolus is not online. Aerolus
Joined: 05 Sep 2011
Total Posts: 847
28 Sep 2013 08:42 AM
Get all scripts in Workspace, Lighting, and StarterGUI
and if the scripts have a certain line in them then
print the location of the script and the line of the script in output


Situation?
I'm editing a rather old map that I made ages ago while I was still using my old account 'Zdude73'
There's a watermark on it that says 'by Zdude73' and I can't find where that is in any script.
Report Abuse
Aerolus is not online. Aerolus
Joined: 05 Sep 2011
Total Posts: 847
28 Sep 2013 09:17 AM
I most likely found the watermark script in Free Models, but I honestly can't find the script anywhere. It only appears in Public mode, not Solo.

Anybody help find it?
Report Abuse
IceOrb is not online. IceOrb
Joined: 02 May 2010
Total Posts: 1206
28 Sep 2013 09:29 AM
So are you trying to look for a specific LINE of code inside the actual script? (double clicking the script to open it up)
Report Abuse
Aerolus is not online. Aerolus
Joined: 05 Sep 2011
Total Posts: 847
28 Sep 2013 09:30 AM
Yes, but I have no idea which script it is, is there a way to search through all scripts at the same time?
Report Abuse
Rhinocrash is not online. Rhinocrash
Joined: 26 Sep 2010
Total Posts: 106
28 Sep 2013 09:32 AM
in command bar
scripts = Instance.new("Model", workspace)
scripts.Name = "Scripts found"
function findscript(place)
for i,v in pairs(place) do
if v:IsA("Script") then
v.Parent = scripts
elseif v:IsA("LocalScript") then
v.Parent = scripts
end
if #v:children() ~= 0 then
findscript(v)
end
end
end
findscript(workspace)
findscript(game:GetService("StarterGui"))
Report Abuse
IceOrb is not online. IceOrb
Joined: 02 May 2010
Total Posts: 1206
28 Sep 2013 09:34 AM
You can't actually make a script access code lines within another script? Why not open up each script and simply use the ctrl + F to find the line of text your looking for.
ctrl + F brings up a window which allows you to enter a phrase or word that you are particularly looking for.
Report Abuse
IceOrb is not online. IceOrb
Joined: 02 May 2010
Total Posts: 1206
28 Sep 2013 09:37 AM
Ctrl + F brings up the "Find" window which allows you to do as I've said; enter the actual phrase/word you are specifically looking for and press find, quite simple. If it doesn't move directly to that line, it means that phrase/word is non-existent within the script.
Report Abuse
Aerolus is not online. Aerolus
Joined: 05 Sep 2011
Total Posts: 847
28 Sep 2013 09:39 AM
Yeah I tried that, Ice, but I seriously can't find it anywhere. For some reason it doesn't appear in Test Solo so I can't really go into game and find where it appears.
Report Abuse
Rhinocrash is not online. Rhinocrash
Joined: 26 Sep 2010
Total Posts: 106
28 Sep 2013 09:41 AM
USE MINE IN COMMANd BAR
Report Abuse
IceOrb is not online. IceOrb
Joined: 02 May 2010
Total Posts: 1206
28 Sep 2013 09:42 AM
You do it in edit mode? Open up the script, hold ctrl and press F, to bring up the find window. Type the phrase you are looking for e.g. let's say I'm looking for "sword.Parent" I would type that in and it will take me directly to the first area where that phrase is located.
Report Abuse
IceOrb is not online. IceOrb
Joined: 02 May 2010
Total Posts: 1206
28 Sep 2013 09:43 AM
What is it you are actually looking for?
Report Abuse
Aerolus is not online. Aerolus
Joined: 05 Sep 2011
Total Posts: 847
28 Sep 2013 09:43 AM
Yeah, I know how to ctrl+ Find, but I can't FIND it in any of the scripts in the game.
Report Abuse
IceOrb is not online. IceOrb
Joined: 02 May 2010
Total Posts: 1206
28 Sep 2013 09:46 AM
What is it you are looking for?
Report Abuse
Aerolus is not online. Aerolus
Joined: 05 Sep 2011
Total Posts: 847
28 Sep 2013 09:47 AM
a line in the script that could create a GUI with "by zdude73" in it
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
28 Sep 2013 09:50 AM
pastebin/savJWEh5

Run that in the command bar (not a script), and look at the output. Sorry for not posting it here, but it's apparently 'breaking the rules'.
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
28 Sep 2013 09:52 AM
Whoops, and add...

Disc(game)

At the end.
Report Abuse
Aerolus is not online. Aerolus
Joined: 05 Sep 2011
Total Posts: 847
28 Sep 2013 09:53 AM
@Desp;

(output)
for the 'raw data' paste:
Error in script: unexpected symbol near ' '

for the top paste:
Error in script: 'then' expected near '?'
Report Abuse
Aerolus is not online. Aerolus
Joined: 05 Sep 2011
Total Posts: 847
28 Sep 2013 09:54 AM
@line 10 of the script
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
28 Sep 2013 09:57 AM
local Found = {}

function Disc(Dir)
for _,v in pairs(Dir:GetChildren()) do
if v:IsA("Script") or v:IsA("LocalScript") then
if v.Source:find([[Instance.new("Hint")]]) or v.Source:find("Zdude73") then
table.insert(Found, v)
end
end
if #v:GetChildren() > 0 then
Disc(v)
end
end
if #Found > 0 then
print("--[[ Directory:", Dir.Name)
print("Found ", #Found, " suspicious items in the indicated directory")
for I,T in pairs(Found) do
print(I, ") ", T:GetFullName())
end
end
Found = {}
end

Disc(game)
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
28 Sep 2013 09:58 AM
Try that. Also, for some reason it's now allowing me to post. Typical.
Report Abuse
Aerolus is not online. Aerolus
Joined: 05 Sep 2011
Total Posts: 847
28 Sep 2013 10:00 AM
OUTPUT WINDOW:
Nothing seems to be happening.

"
> local Found = {}

function Disc(Dir)
for _,v in pairs(Dir:GetChildren()) do
if v:IsA("Script") or v:IsA("LocalScript") then
if v.Source:find([[Instance.new("Hint")]]) or v.Source:find("Zdude73") then
table.insert(Found, v)
end
end
if #v:GetChildren() > 0 then
Disc(v)
end
end
if #Found > 0 then
print("--[[ Directory:", Dir.Name)
print("Found ", #Found, " suspicious items in the indicated directory")
for I,T in pairs(Found) do
print(I, ") ", T:GetFullName())
end
end
Found = {}
end

Disc(game)
"
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
28 Sep 2013 10:01 AM
If there's nothing in the output window, then no script was found that contained the word 'Zdude73' and there's nothing creating hints.
Report Abuse
Aerolus is not online. Aerolus
Joined: 05 Sep 2011
Total Posts: 847
28 Sep 2013 10:02 AM
It's not a Hint it's a Gui, that's the issue.
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
28 Sep 2013 10:04 AM
Still, it would have found the word 'Zdude73' if that were the case. So long as the string isn't being distorted in some way.
Report Abuse
Aerolus is not online. Aerolus
Joined: 05 Sep 2011
Total Posts: 847
28 Sep 2013 10:06 AM
Hm, then how would it create the Gui?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image