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: Would this work?

Previous Thread :: Next Thread 
hamsterloverboy3 is not online. hamsterloverboy3
Joined: 26 Jul 2012
Total Posts: 185
08 Oct 2012 05:43 PM
function makeHint()
return Instance.new("Hint") -- Not sure about this...
end
function makeSparkles()
return Instance.new("Sparkles") -- Not sure about this either...
end

So can I just do that, then do:

local hint = makeHint()
--blahblah.
Report Abuse
L2000 is not online. L2000
Joined: 03 Apr 2008
Total Posts: 77448
08 Oct 2012 05:44 PM
That will work; it's like returning something you have in game.Workspace, except you have to do the parenting and everything outside of the function.
Report Abuse
hamsterloverboy3 is not online. hamsterloverboy3
Joined: 26 Jul 2012
Total Posts: 185
08 Oct 2012 05:46 PM
Alright, just checking :P
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