RA2lover
|
  |
| Joined: 09 Nov 2008 |
| Total Posts: 1254 |
|
|
| 25 Jan 2012 11:31 AM |
Basically the goal of this thread is to create a totally useless lua library, created with roblox-player-made functions posted by other players.
i'll start with
function return(a,b,c) return a,b,c end |
|
|
| Report Abuse |
|
|
PsychoBob
|
  |
| Joined: 08 Jul 2009 |
| Total Posts: 11047 |
|
|
| 25 Jan 2012 11:58 AM |
function lagmaker() i = 1 while true do i = i+1 end |
|
|
| Report Abuse |
|
|
PsychoBob
|
  |
| Joined: 08 Jul 2009 |
| Total Posts: 11047 |
|
|
| 25 Jan 2012 11:58 AM |
Forgot to add an extra end. Silly me.
function lagmaker() i = 1 while true do i = i+1 end end --Now it's fixed. |
|
|
| Report Abuse |
|
|
Cyrok
|
  |
| Joined: 11 Jan 2012 |
| Total Posts: 630 |
|
|
| 25 Jan 2012 02:01 PM |
while "This thread is stupid" do -- Infinite loop end |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2012 03:14 PM |
function addpoop(number1,number2) print(number1+number2) end
addpoop(5,1) |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2012 03:20 PM |
function die() print "you cant kill plastic blocks, you idiot" end |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2012 03:21 PM |
game.Players.PlayerAdded:connect(function(p) end)
SO USELESS!! |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2012 03:23 PM |
>none of you have pointed out that the script in the op won't even work
:l |
|
|
| Report Abuse |
|
|
Cyrok
|
  |
| Joined: 11 Jan 2012 |
| Total Posts: 630 |
|
|
| 25 Jan 2012 03:29 PM |
Oh yeah.
"function return"
"return" |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2012 05:00 PM |
You can't use any of the reserved Lua keywords as identifiers, therefore, you can't create a function and name it 'return'.
Also, please post this in this forum, next time: http://www.roblox.com/Forum/ShowForum.aspx?ForumID=38 . |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 25 Jan 2012 05:07 PM |
function forkb() Spawn(forkb) Spawn(forkb) end |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2012 05:34 PM |
"getfenv()["return"] = function() print("umad") end"
Won't work. It won't error, but it still won't work. :) |
|
|
| Report Abuse |
|
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 25 Jan 2012 05:34 PM |
function getObject(object) return object end
~Atheist, dutch, canadian, programmer, "markuper" |
|
|
| Report Abuse |
|
|
RA2lover
|
  |
| Joined: 09 Nov 2008 |
| Total Posts: 1254 |
|
|
| 25 Jan 2012 05:47 PM |
function Spawn(f) f()--YAHICANFIXSTUFF! end |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2012 06:21 PM |
""getfenv()["return"] = function() print("umad") end" Won't work. It won't error, but it still won't work. :)"
..And that's why this thread is for useless scripts? :D |
|
|
| Report Abuse |
|
|
| |
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 25 Jan 2012 10:37 PM |
local oldPrint = print function print(...) if math.random(1,100000) == 1 then error("Attempt to index a nil value") else oldPrint(...) end end |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2012 10:46 PM |
^lul
function print(b) print(b) end
~I've been to nil and back. |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2012 10:47 PM |
oh woops :P
function display(b) print(b) end
~I've been to nil and back. |
|
|
| Report Abuse |
|
|
Legend26
|
  |
| Joined: 08 Sep 2008 |
| Total Posts: 10586 |
|
|
| 25 Jan 2012 11:44 PM |
(function (Obj) return Obj:IsA"Stravant" end)(GetUser"Stravant")
>true |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2012 12:46 AM |
"..And that's why this thread is for useless scripts? :D"
No... This thread is for creating an useless LIBRARY, not useless scripts. And what he posted couldn't be put in the library. |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 26 Jan 2012 06:51 AM |
function themostusefullscriptofrobloxunobdontudaretodisagreewithmebecauseicanseeeverything() print("Myrco was here :o") end
|
|
|
| Report Abuse |
|
|
RMDXData
|
  |
| Joined: 21 Nov 2011 |
| Total Posts: 97 |
|
|
| 26 Jan 2012 08:22 AM |
function a() hax = "coroutine.resume(coroutine.create(function() for i=1,1000 do " for i=1,10 do hax = hax .. hax end hax2 = " end end)) " for i=1,10 do hax2 = hax2 .. hax2 end hax = hax .. print("trollfaic") .. hax2 loadstring(hax)() end
|
|
|
| Report Abuse |
|
|
getkoed
|
  |
| Joined: 18 Feb 2010 |
| Total Posts: 2298 |
|
| |
|