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: Funny Random Scripts xD

Previous Thread :: Next Thread 
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
28 Jul 2011 11:26 PM
[ Content Deleted ]
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
28 Jul 2011 11:29 PM
"if Player.Character and Player.Character:FindFirstChild("Torso") and Player.Character.Torso.Position.y < 100"

RBX.Lua doesn't work like that. If Character or Torso don't exist your script breaks.

if workspace:FindFirstChild"adsf" and Workspace.asdf.Name == "asdf" then print"asdf" end

breaks.
Report Abuse
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
28 Jul 2011 11:33 PM
@Arceus

Don't you know how Lua if-statements work?

if < condition1 > and < condition2 > ... then

If condition1 is false/nil, it does not evaluate condition2, so therefore it will work.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
28 Jul 2011 11:33 PM
It breaks for me.
Report Abuse
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
28 Jul 2011 11:39 PM
Workspace.asdf.Name == "asdf"

I lol'd.
Report Abuse
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
28 Jul 2011 11:41 PM
@Arceus

Also, it's a typo that breaks your script.

if workspace:FindFirstChild"adsf" and Workspace.asdf.Name == "asdf" then print"asdf" end
-------------------------------^adsf------------------^asdf
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
28 Jul 2011 11:52 PM
[ Content Deleted ]
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