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: How do these global table naming work?

Previous Thread :: Next Thread 
Composure is not online. Composure
Joined: 05 Mar 2011
Total Posts: 28
15 Jul 2011 01:38 PM
For example, I started learning more about Global tables. And I've attempted a couple of times to create a function... for example


_G.Random = function(pie) a:Remove() end
a = Instance.new("Message, Workspace)
a.Text = "test"
wait(3)
pie()

Yet it doesn't work, so can someone please explain why?


Also, in this scripting fourm it clearly saids in the Pinned fourm thingy. That this fourm is for advanced scripting context. He even gave a example :D

Report Abuse
xSIXx is not online. xSIXx
Joined: 06 Aug 2010
Total Posts: 9202
15 Jul 2011 01:38 PM
badly.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
15 Jul 2011 01:39 PM
http://www.roblox.com/--item?id=56299133
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
15 Jul 2011 01:40 PM
Go to scripting helpers.
Report Abuse
Composure is not online. Composure
Joined: 05 Mar 2011
Total Posts: 28
15 Jul 2011 01:41 PM
Nickmaster24

Read the pinned topic in this fourm. It is allowed
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
15 Jul 2011 01:42 PM
Um, no it isn't. Your asking for help :/
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
15 Jul 2011 01:43 PM
Don't come in here asking for a script. Nobody will make it and everyone will yell at you. Seriously, this isn't the forum for asking how to script or asking for someone to make it for you.

This forum is for discussion of advanced scripting concepts. If you want to ask questions like "How do I work with metatables?" then that is fine.

DO NOT ASK FOR PEOPLE TO DO THE WORK FOR YOU.
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
15 Jul 2011 01:44 PM
"discussion of advanced scripting concepts"

This isn't that advanced...

_G.[Name] = --Stuff
Report Abuse
Composure is not online. Composure
Joined: 05 Mar 2011
Total Posts: 28
15 Jul 2011 01:44 PM
So is the example he has given.

"This fourm is not for requests, we will not make a script for you"

Theres nothing in the thread that states "You cannot help a player who posts a script that is broken"

His eample "How would I use metatables"
Report Abuse
burgly is not online. burgly
Top 100 Poster
Joined: 20 Aug 2006
Total Posts: 2843
15 Jul 2011 01:44 PM
Do you want to learn metatables?
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
15 Jul 2011 01:44 PM
Well, I guess I'll fix it...

_G.pie = function()
a:Remove()
end


a = Instance.new("Message, Workspace)
a.Text = "test"
wait(3)
pie()
Report Abuse
Composure is not online. Composure
Joined: 05 Mar 2011
Total Posts: 28
15 Jul 2011 01:45 PM
@nickmaster


That has nothing to do with the script, you failed sir.
Report Abuse
Composure is not online. Composure
Joined: 05 Mar 2011
Total Posts: 28
15 Jul 2011 01:46 PM
@nick

btw that script doesn't work.
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
15 Jul 2011 01:46 PM
@Composure

I failed? You just got your head shoved up your [donkey].

GO AWAY NOW!!!!

Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
15 Jul 2011 01:46 PM
You failed first for posting here when you obviously don't belong here.
Report Abuse
Composure is not online. Composure
Joined: 05 Mar 2011
Total Posts: 28
15 Jul 2011 01:47 PM
@Nickmaster

Test the script for yourself. It fails :D
Report Abuse
Composure is not online. Composure
Joined: 05 Mar 2011
Total Posts: 28
15 Jul 2011 01:49 PM
@1waffle1

I don't belong here huh?
Nickmaster just failed to fix my script.

It sure is easy!
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
15 Jul 2011 01:49 PM
@Compsure


And that's what I get for assuming you know how to script basics. I didn't mess with the non-global stuff assuming you weren't a complete noob...


BESIDES, YOU SHOULDN'T EVEN BE HERE!! GO TO S&H!!!!!
Report Abuse
nickmaster2424 is not online. nickmaster2424
Joined: 27 May 2008
Total Posts: 152
15 Jul 2011 01:57 PM
@Compsure

Just get your @$$ out...
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
15 Jul 2011 01:59 PM
_G.Yum = function() py:Remove() end
py = Instance.new("Telamon")
Yum()


???
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
15 Jul 2011 02:01 PM
^See, not advanced topic...
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
15 Jul 2011 02:15 PM
[ Content Deleted ]
Report Abuse
terminator213 is not online. terminator213
Joined: 22 May 2009
Total Posts: 20222
15 Jul 2011 02:22 PM
^

Disappointment, ain't' that a [Female Dog].
Report Abuse
Composure is not online. Composure
Joined: 05 Mar 2011
Total Posts: 28
15 Jul 2011 04:03 PM
nickmaster

"not a advanced topic"

BUT that scripts fails at well. :)

You say it's not advanced but you fail to fix the script.

It's saying that the global function is nil

attempt to call global 'Yum' (a nil value)
Report Abuse
TheLuaChicken is not online. TheLuaChicken
Joined: 21 Jun 2011
Total Posts: 152
15 Jul 2011 04:10 PM
@Composure

It's fairly simple, you just forgot the name the _G. in the execution.



_G.Random = function() a:Remove() end
a = Instance.new("Message", Workspace)
a.Text = "test"
wait(3)
_G.Random()
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