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 » Scripting Helpers
Home Search
 

Re: Just A Question I Have..

Previous Thread :: Next Thread 
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
15 Dec 2011 12:17 PM
I Was Wondering If I Could Do Somthing Like This

if Lft() or Die() then
*Script*
end

Lft() Is A Function, So Is Die().

So...

function Lft(jf)
print('lol')
end

function Die(fj)
print('yay')
end

if Lft() or Die() then
*Script*
end

Would That Kinda Work?
Im Basicly An Advanced Noob.
Good, But Horible.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
15 Dec 2011 12:24 PM
I think that's more stupid that advanced; or at least the way you explained it sounded stupid.

­ '+1 Post. Ujelly?'>
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
15 Dec 2011 12:26 PM
Or maybe you want to return something

local var="hi"

function check(str)
var==str and return true or return false
end

if check("hi") then print[[var is "hi"]] end

­<'+1 Post. Ujelly?'>
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
15 Dec 2011 12:26 PM
It Is :) I Am Just Wondering If That Would Work Or Would Not. I Can Make Scripts :) Just Not.. Insane Scripts. Im Still Learning.
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
15 Dec 2011 12:35 PM
Well, I Will Be Making A Disaster-Like Game, Execpt Not Disasters. More A Challenge - As in building, fighting, races, ect. For The Fighting, If Sombody Dies, Or Leaves, A Value Goes Down, Or They Get Removed From A Table. (Though I Never Learned Tables T.T)
Hmm.. Now That I Think.. I Could Just Make Them The Functions They Are.. But Still, Alot Of Mess. Meh.. Time To Learn Tables! (Lets Hope The Wiki Works For Me Now..)
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
15 Dec 2011 02:26 PM
I cannot stand reading that with a capital on the first letter of every word.

­<'+1 Post. Ujelly?'>
Report Abuse
oxcool1 is not online. oxcool1
Joined: 05 Nov 2009
Total Posts: 15444
15 Dec 2011 02:30 PM
[ Content Deleted ]
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
15 Dec 2011 02:56 PM
Oops, my bad. No idea why I'd even use an if statement, or even "return true" in that case.

­<'+1 Post. Ujelly?'>
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
15 Dec 2011 03:11 PM
return true or false*

not return true or return false, was tired when writing that.

­<'+1 Post. Ujelly?'>
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
15 Dec 2011 05:50 PM
I'm making a game. There. Thats all I basicly said.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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