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: Searching Function -> Get the full name

Previous Thread :: Next Thread 
TwillightQLink is not online. TwillightQLink
Joined: 08 Nov 2009
Total Posts: 7
16 Dec 2012 02:25 PM
Can you tell me how i can get
the full name of an object?
As example the name of the part is Fullblabla 2 2 1
and i just know Fullbla, how i can remove this?
Report Abuse
jelly134 is not online. jelly134
Joined: 25 Aug 2008
Total Posts: 1137
16 Dec 2012 02:26 PM
Please try to explain that again.
Report Abuse
jelly134 is not online. jelly134
Joined: 25 Aug 2008
Total Posts: 1137
16 Dec 2012 02:27 PM
name = "Fullbla"

c = game.Workspace:GetChildren()
for i=1, #c do
if string.sub(c[i].Name,1,string.len(name)) == name then
--do stuff with c[i]
end
end
Report Abuse
Schematics is not online. Schematics
Joined: 15 May 2011
Total Posts: 92
16 Dec 2012 02:28 PM
local alliknow = "fullbla"

local found = nil

for _, v in pairs(workspace:children()) do
if string.find(string.lower(v.Name), alliknow) then
found = v
end
end


I don't know, that seems like the best way I could think of doing it at the moment.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
16 Dec 2012 02:33 PM
I had this. I can't find the post. >_<
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