of     1   

InfinityFire
#44825058Wednesday, March 30, 2011 12:06 PM GMT

I want to know how to hold a variable, like this: function TR(K) --Blahblahblah end M.KeyDown:connect(function() TR(K) end) What I want to do, is not only use K, but also M (the Mouse) in the function TR. How can I do that? Thanks, InfinityFire.
BenBonez
#44825262Wednesday, March 30, 2011 12:20 PM GMT

maik variable for mouse in script ->profit
tdog158
#44825766Wednesday, March 30, 2011 12:59 PM GMT

function TR(K) k:meow() --M:meow() end M.KeyDown:connect(function() TR(M) end)
tdog158
#44825781Wednesday, March 30, 2011 1:00 PM GMT

It basically forwards the variable to the function, and the function keeps it as a variable that you can do whatever to. But in the above function, K is just a string value "M"...oh wait, don't use that script up there without changing TR(M) to TR("M")
oysi93
#44827167Wednesday, March 30, 2011 2:34 PM GMT

tdog, what you're saying is absurd, man... "function TR(K) --Blahblahblah end M.KeyDown:connect(function() TR(K) end)" Uhm, that script is already broken. I'll fix it and add the mouse. function TR(M, K) -- Trolololol end M.KeyDown:connect(function(K) TR(M, K) end) Notice how I passed two arguments to the TR function. =P
Andros7
#44829910Wednesday, March 30, 2011 4:21 PM GMT

Lol, sorry but just Oysi made his #11100 post!
Oysi
#44830010Wednesday, March 30, 2011 4:25 PM GMT

[ Content Deleted ]
InfinityFire
#44916046Friday, April 01, 2011 7:42 AM GMT

Omg, how lucky...

    of     1