|
MONEYPOLL9317'S HELP THREAD!!Yes I have came back, and turned a better scripter.Please, PLEASE!Do not say I can't script. |
|
bloccoRPGJoin Date: 2009-10-17 Post Count: 1343 |
tell me what this does:
print(getfenv(0)["print"]~=nil) |
|
|
prints...DUH!Wait do you want me to be speciphic cuz in the wiki I didnt get Function Dump/Core Functions |
|
bloccoRPGJoin Date: 2009-10-17 Post Count: 1343 |
No I meant, what does it do, like explain all the stuff in there for me. I know waht it does, but tell ME what it does. |
|
gijsbel11Join Date: 2009-02-07 Post Count: 4223 |
i think it print nothing becuze in the line i says print == nil... |
|
bloccoRPGJoin Date: 2009-10-17 Post Count: 1343 |
No, gij. You are so wrong right there. |
|
|
print-- Makes this say something in the output window(getfenv(0)-- this returns the global workspace. ["print"]~=nil) -- this just makes the print nil,right? |
|
bloccoRPGJoin Date: 2009-10-17 Post Count: 1343 |
It doesn't make the 'print' nil.
And getfenv(0) does not return the global workspace.
|
|
|
oh well...What does it do, then? |
|
bloccoRPGJoin Date: 2009-10-17 Post Count: 1343 |
It prints true. |
|
EyinJoin Date: 2009-10-10 Post Count: 567 |
He is messing with the enviorments again...useful, but the way he does it is bad... |
|
|
wow whats the point of that??This is off topic, just, umm, somebody gimme a script...Not that one. |
|
EyinJoin Date: 2009-10-10 Post Count: 567 |
why won't this work?
function Printer()
print(Printer)
end
setfenv(Printer, {Print = "L", _G = _G}) |
|
bloccoRPGJoin Date: 2009-10-17 Post Count: 1343 |
@Eyin:
I'm not messing with the environments... Where do you see '='?
I see '~=', but not '='.
Please tell me where I am MESSING with it. |
|
|
first, what is,"printer"? |
|
bloccoRPGJoin Date: 2009-10-17 Post Count: 1343 |
'Printer' is the function that he made, duh. |
|
EyinJoin Date: 2009-10-10 Post Count: 567 |
woops...put Print wrong..
function Printer()
print(Print)
end
setfenv(Printer, {Print = "L", _G = _G}) |
|
|
lol epic fail of me...
why won't this work?
function Printer()
print(Printer)
end
setfenv(Printer, {Print = "L", _G = _G}) -- what's the point of changing the enviorment?? |
|
EyinJoin Date: 2009-10-10 Post Count: 567 |
CMON! =D
because I am re-doing RBLX Lua so people can type in english... |
|
|
Oh wow, that a little big for you, MrNicNac. |
|
|
Could you please tell me how to use rawset to set a _G please? |
|
EyinJoin Date: 2009-10-10 Post Count: 567 |
No check this out...
function TestFunctions()
output("Text Appears in Output")
m = make.new(message)
m.Text = " "
m.Parent = game
h = make.new(hint)
h.Parent = game
hp = make.new(hopperbin)
hp.Parent = game
t = make.new(tool)
t.Parent = game
m = make.new(model)
m.Parent = game
f = make.new(forcefield)
f.Parent = game
end
setfenv(TestFunctions, {output = print, script = script, game = workspace, make = Instance, message = "Message", hint = "Hint", model = "Model", tool = "Tool", hopperbin = "HopperBin", brick = "Part", truss = "TrussPart", forcefield = "ForceField"})
TestFunctions() |
|
|
Oh and I only want Moneypoll to help me here. |
|
|
Ahh I see you replace Instance with make.Roks |
|
|
sorry dont understand when they say that rawsets
Sets the real value of table[index] to value, without invoking any metamethod. table must be a table, index any value different from nil, and value any Lua value.
|
|