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 » Scripters
Home Search
 

Re: Text Detection Script

Previous Thread :: Next Thread 
MlgDuckMasterofCows is not online. MlgDuckMasterofCows
Joined: 11 Jun 2016
Total Posts: 4
18 Jan 2017 07:46 PM
Hi,

I want to know how to allow a game to look for a specific string of text for example "1234ROBLOX" so that I can make a "hacking" mini game. Thanks!
Report Abuse
iSymon is not online. iSymon
Joined: 19 Nov 2011
Total Posts: 1023
18 Jan 2017 07:53 PM
### = "1234ROBLOX" text = "RandomString1234ROBLOXxyz" a, b = string.find(text, #### if a and b then sub = text:sub(a, b) print(sub) end > 1234ROBLOX There may/will be other ways of doing this lol.
Report Abuse
iSymon is not online. iSymon
Joined: 19 Nov 2011
Total Posts: 1023
18 Jan 2017 07:54 PM
Sorry for the format:

local f = "1234ROBLOX"
local t = "RandomString1234ROBLOXxyz"

local a,b = string.find(text, f)

if a and b then
print(text:sub(a, b))
end

> 1234ROBLOX


Report Abuse
iSymon is not online. iSymon
Joined: 19 Nov 2011
Total Posts: 1023
18 Jan 2017 07:55 PM
Another error lol, in the previous post switch "text" with the variable t. I had text clarified in my first post and forgot to change it in the previous post.


Report Abuse
MlgDuckMasterofCows is not online. MlgDuckMasterofCows
Joined: 11 Jun 2016
Total Posts: 4
20 Jan 2017 06:15 PM
Thank You for that script, but how would i get the text to display on a computer object, and have the player type that on the computer.
Report Abuse
scottmike0 is not online. scottmike0
Joined: 14 Sep 2008
Total Posts: 1073
20 Jan 2017 06:16 PM
gui
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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