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: Metatable Help

Previous Thread :: Next Thread 
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
09 Mar 2013 09:24 PM
local admin = {Garnished}
wait(10)
local m = Instance.new("Message", Workspace)
setmetatable(admin, {Garnished, tdawgtren}
m.Text = (admin)


I'm trying to set the text to the metatable, is this possible?
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
09 Mar 2013 09:42 PM
I think you should learn how tables work first before diving into metatables.
For your thing though, you can make it quite simple like so:

local admin = "Garnished"
Wait(10)
local m = Instance.new("Message",Workspace)
m.Text = admin
Report Abuse
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
09 Mar 2013 09:45 PM
^
I know how tables work, I just need to use a metatable. nob
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
09 Mar 2013 09:46 PM
Then why did you put your name by itself within a table? It will view that as an unassigned variable and treat it as 'nil' just like any other non-indexed item in a table.
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