Akbarr
|
  |
| Joined: 02 Nov 2012 |
| Total Posts: 5547 |
|
|
| 19 Feb 2013 07:58 PM |
| Something that can be done in script builder besides Admin commands (Already done) that will be a challange to me. I am a decent scripter (preferably not GUIs since GUis are hard to control in SB) |
|
|
| Report Abuse |
|
|
|
| 19 Feb 2013 08:00 PM |
Make a body switcher.
You specify who you're going to switch with, and then you change places.
It's good for surprising folks. |
|
|
| Report Abuse |
|
|
|
| 19 Feb 2013 08:02 PM |
since we were on the topic of brain**** on another thread...
brain**** interpreter |
|
|
| Report Abuse |
|
|
iOpened
|
  |
| Joined: 31 Mar 2012 |
| Total Posts: 638 |
|
|
| 19 Feb 2013 08:03 PM |
| Something that includes ninjas. |
|
|
| Report Abuse |
|
|
Joalmo
|
  |
| Joined: 28 Jun 2009 |
| Total Posts: 1160 |
|
| |
|
|
| 19 Feb 2013 08:10 PM |
Make a piano?
How about a really complex weapon?
How about another scripting language?
How about a swimming pool without terrain? |
|
|
| Report Abuse |
|
|
|
| 19 Feb 2013 08:11 PM |
"How about another scripting language?" yes |
|
|
| Report Abuse |
|
|
|
| 19 Feb 2013 08:18 PM |
| How about a script to script for you. |
|
|
| Report Abuse |
|
|
Cyriakk
|
  |
| Joined: 29 Aug 2011 |
| Total Posts: 59 |
|
|
| 19 Feb 2013 08:31 PM |
| Create a system where, given any loop in a closed environment, it will tell you whether or not the loop will eventually complete. |
|
|
| Report Abuse |
|
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 19 Feb 2013 09:13 PM |
| Make a script to print the final results of printing the results of the script. |
|
|
| Report Abuse |
|
|
Tr0ub4dor
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 200 |
|
| |
|
|
| 19 Feb 2013 09:22 PM |
| Create a script that deletes itself WITHOUT calling Remove() OR Destroy() ANYWHERE. |
|
|
| Report Abuse |
|
|
Tr0ub4dor
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 200 |
|
| |
|
Joalmo
|
  |
| Joined: 28 Jun 2009 |
| Total Posts: 1160 |
|
| |
|
Tr0ub4dor
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 200 |
|
|
| 19 Feb 2013 09:45 PM |
| game:service("Debris"):AddItem(script,0) |
|
|
| Report Abuse |
|
|
|
| 19 Feb 2013 09:52 PM |
"Create a system where, given any loop in a closed environment, it will tell you whether or not the loop will eventually complete."
Funny guy. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 19 Feb 2013 09:57 PM |
Make a function comparing two values(those values being the arguments) and check if both arguments are equal to each other.
Rules are you can't use any comparison operators, no metatable methods, and you can't use rawequal.
Yes, there is a way to do this |
|
|
| Report Abuse |
|
|
Tr0ub4dor
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 200 |
|
|
| 19 Feb 2013 10:01 PM |
@miz
compare = function(a, b) return tostring(math.min(a,b)-math.max(a,b)):find("-") and "These numbers are not equal" or "These numbers are equal" end print(compare(1, 1)) print(compare(2, 1)) print(compare(1, 2))
I win |
|
|
| Report Abuse |
|
|
DannyCore
|
  |
| Joined: 25 Apr 2012 |
| Total Posts: 990 |
|
| |
|
|
| 19 Feb 2013 10:07 PM |
Sorry, I had to solve the equality problem. It was too tempting of a challenge.
Unfortunately, it only solves with number inputs.
function equal(val1, val2) for i = 0,math.abs(val1-val2)-1 do return false end return true end
print(equal(6,2)) print(equal(14,14)) |
|
|
| Report Abuse |
|
|
Tr0ub4dor
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 200 |
|
|
| 19 Feb 2013 10:11 PM |
compare = function(a, b) local ta, tb = tonumber(a) or 0, tonumber(b) or 0 if type(a) == "string" and type(b) == "string" then for i = 1, #a do ta = ta + string.byte(a:sub(i,i)) end for i = 1, #b do tb = tb + string.byte(b:sub(i,i)) end end return tostring(math.min(ta,tb)-math.max(ta,tb)):find("-") and "Not equal" or "Equal" end print(compare(1, 2)) print(compare(1, 1)) print(compare("The", "Is")) print(compare("The", "The"))
Works with strings |
|
|
| Report Abuse |
|
|
|
| 19 Feb 2013 10:16 PM |
| but no comparison operators are allowed |
|
|
| Report Abuse |
|
|
Tr0ub4dor
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 200 |
|
|
| 19 Feb 2013 10:19 PM |
Okay, none at all, that's fine.
compare = function(a, b) local ta, tb = tonumber(a) or 0, tonumber(b) or 0 if type(a):find("string") and type(b):find("string") then for i = 1, #a do ta = ta + string.byte(a:sub(i,i)) end for i = 1, #b do tb = tb + string.byte(b:sub(i,i)) end end return tostring(math.min(ta,tb)-math.max(ta,tb)):find("-") and "Not equal" or "Equal" end print(compare(1, 15)) print(compare(15, 15)) print(compare("Waffle", "Roblox")) print(compare("Waffle", "Waffle")) |
|
|
| Report Abuse |
|
|
Tr0ub4dor
|
  |
| Joined: 10 Feb 2013 |
| Total Posts: 200 |
|
|
| 19 Feb 2013 10:20 PM |
| Oh, 'and' and 'or' also count. Let's see... |
|
|
| Report Abuse |
|
|
|
| 19 Feb 2013 10:20 PM |
| Use pcall to check whether or not it will work for the data types being compared. |
|
|
| Report Abuse |
|
|