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 » Roblox » Suggestions & Ideas
Home Search
 

Re: New Scripting Type.

Previous Thread :: Next Thread 
jacklollz2 is not online. jacklollz2
Joined: 08 Oct 2010
Total Posts: 1183
22 Jul 2012 02:35 PM
Maybe you could add a new type of Script type, kind of like :FindFirstChild(InstanceName). It would be :FindFirstClass(InstanceClassName) Example: (Workspace has 1 Message), game.Workspace:FindFirstClass("Message").Name = "MessageName" (Workspaces Message is now MessageName)
Report Abuse
jacklollz2 is not online. jacklollz2
Joined: 08 Oct 2010
Total Posts: 1183
22 Jul 2012 02:41 PM
Bump.
Report Abuse
bballkyle15 is not online. bballkyle15
Joined: 30 May 2011
Total Posts: 440
22 Jul 2012 02:42 PM
Follow me if your good at sword fighting i will show you who is boss.
Report Abuse
jacklollz2 is not online. jacklollz2
Joined: 08 Oct 2010
Total Posts: 1183
22 Jul 2012 02:47 PM
+1 To the ban script.
Report Abuse
Kevin7704 is not online. Kevin7704
Joined: 08 Jan 2009
Total Posts: 5568
22 Jul 2012 02:47 PM
@bball why are you off topic
Report Abuse
jacklollz2 is not online. jacklollz2
Joined: 08 Oct 2010
Total Posts: 1183
23 Jul 2012 02:54 AM
1 Day later... Bump.
Report Abuse
kevin756 is not online. kevin756
Joined: 13 Dec 2008
Total Posts: 11244
23 Jul 2012 03:00 AM
game.Players.bballkyle15:Remove()
Report Abuse
jacklollz2 is not online. jacklollz2
Joined: 08 Oct 2010
Total Posts: 1183
09 Aug 2012 02:26 PM
1 Month later... Bump.
Report Abuse
fiCmds is not online. fiCmds
Joined: 06 Aug 2012
Total Posts: 25
09 Aug 2012 02:29 PM
LOL

I like it. Perfect.
Report Abuse
speedydude123 is not online. speedydude123
Joined: 14 May 2010
Total Posts: 1388
09 Aug 2012 02:41 PM
Thats LUA's job. Not Roblox.
Report Abuse
kevin756 is not online. kevin756
Joined: 13 Dec 2008
Total Posts: 11244
09 Aug 2012 02:43 PM
Lua*
It's not an acronym.
Report Abuse
EchoReaper is not online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
09 Aug 2012 03:16 PM
Use a bindable function; it's a way of making your own. Lua/Roblox functions are actually just code called when it executes. plate = workspace:FindFirstChild("Baseplate") really is:

for i=1, #workspace:GetChildren() do
if workspace:GetChildren()[i].Name == "Baseplate" then
plate = workspace:GetChildren()[i]
end
end

A similar thing can be done with a bindable function. A function that prints how many classes the directory has is quite simple:

Function = Instance.new("BindableFunction",Workspace) --[[creates the bindable function into the workspace. Function can be named anything you want it to be]]
Function.OnInvoke = function(classNameInput,directoryNameInput)
local numClassesFound = 0
for i=1,#directoryNameInput:GetChildren() do
if directoryNameInput:GetChildren()[i].ClassName == classNameInput then
numClassesFound = numClassesFound + 1
end
end
print(numClassesFound)
end
-- Other code
Function:Invoke(classnamehere,directorynamehere)
--example: Function:Invoke(Part,Workspace)



Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Suggestions & Ideas
   
 
   
  • 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