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: \

Previous Thread :: Next Thread 
Akbarr is not online. 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
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
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
BlakTankerCvC is not online. BlakTankerCvC
Joined: 31 Jan 2013
Total Posts: 586
19 Feb 2013 08:02 PM
since we were on the topic of brain**** on another thread...

brain**** interpreter
Report Abuse
iOpened is not online. iOpened
Joined: 31 Mar 2012
Total Posts: 638
19 Feb 2013 08:03 PM
Something that includes ninjas.
Report Abuse
Joalmo is not online. Joalmo
Joined: 28 Jun 2009
Total Posts: 1160
19 Feb 2013 08:05 PM
make me some irl friends
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
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
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
19 Feb 2013 08:11 PM
"How about another scripting language?"
yes
Report Abuse
invaderzimfan1233 is not online. invaderzimfan1233
Joined: 20 Jan 2012
Total Posts: 138
19 Feb 2013 08:18 PM
How about a script to script for you.
Report Abuse
Cyriakk is not online. 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 is not online. 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 is not online. Tr0ub4dor
Joined: 10 Feb 2013
Total Posts: 200
19 Feb 2013 09:16 PM
@booing

do
-- script
end
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
19 Feb 2013 09:22 PM
Create a script that deletes itself WITHOUT calling Remove() OR Destroy() ANYWHERE.
Report Abuse
Tr0ub4dor is not online. Tr0ub4dor
Joined: 10 Feb 2013
Total Posts: 200
19 Feb 2013 09:23 PM
script.Parent = nil
Report Abuse
Joalmo is not online. Joalmo
Joined: 28 Jun 2009
Total Posts: 1160
19 Feb 2013 09:38 PM
lol
Report Abuse
Tr0ub4dor is not online. Tr0ub4dor
Joined: 10 Feb 2013
Total Posts: 200
19 Feb 2013 09:45 PM
game:service("Debris"):AddItem(script,0)
Report Abuse
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
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 is not online. 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 is not online. 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 is not online. DannyCore
Joined: 25 Apr 2012
Total Posts: 990
19 Feb 2013 10:07 PM
^ ownd
Report Abuse
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
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 is not online. 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
BlakTankerCvC is not online. BlakTankerCvC
Joined: 31 Jan 2013
Total Posts: 586
19 Feb 2013 10:16 PM
but no comparison operators are allowed
Report Abuse
Tr0ub4dor is not online. 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 is not online. 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
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
19 Feb 2013 10:20 PM
Use pcall to check whether or not it will work for the data types being compared.
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