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: Do I END to this?

Previous Thread :: Next Thread 
weregirl29 is not online. weregirl29
Joined: 05 Nov 2011
Total Posts: 906
18 Nov 2012 04:01 PM
Script.Parent.Frame.BackgroundTransparency = 0
wait (5)
Script.ParentScript.Parent.FrameBackgroundTransparency = 0.2
wait(0.5)
Script.Parent.Frame.BackgroundTransparency = 0.4
wait(0.5)
Script.Parent.Frame.BackgroundTransparency = 0.6
wait(0.5)
Script.Parent.Frame.BackgroundTransparency = 0.8
wait(0.5)
Script.Parent.Frame.BackgroundTransparency = 1

Would the function fail WITHOUT end, or is it optional?
Report Abuse
zoman08 is not online. zoman08
Joined: 15 Mar 2009
Total Posts: 539
18 Nov 2012 04:05 PM
You do not need an end, you did not state a function
Report Abuse
weregirl29 is not online. weregirl29
Joined: 05 Nov 2011
Total Posts: 906
18 Nov 2012 04:07 PM
Okay, thank you ^^
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
18 Nov 2012 04:07 PM
Yes, only statements (if, elseif, for, while) require an 'end'.
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
18 Nov 2012 04:35 PM
@rofl

Only these need ends:

function
if
do

Nothing else.

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]-
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
18 Nov 2012 04:36 PM
I stand corrected, then. ^^
Report Abuse
Eddy3D is not online. Eddy3D
Joined: 21 Nov 2010
Total Posts: 3017
18 Nov 2012 05:22 PM
If you see a blue hash mark you have too.



(~'3D'~)
Report Abuse
TehChikenHater is not online. TehChikenHater
Joined: 11 Jun 2012
Total Posts: 497
18 Nov 2012 05:41 PM
#Eddy,

until
in

Does do not require 'ends'.
Report Abuse
Joalmo is not online. Joalmo
Joined: 28 Jun 2009
Total Posts: 1160
18 Nov 2012 05:43 PM
@swimguy777, actually, RoflBread was correct. For statements require ends as do while statements.
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
18 Nov 2012 05:45 PM
@Joal

Nope. Only

function
if
do

But notice

for i = 1,4 DO
while true DO

It's the 'do' that needs the end, not the 'for' or 'while'

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]-
Report Abuse
Joalmo is not online. Joalmo
Joined: 28 Jun 2009
Total Posts: 1160
18 Nov 2012 05:48 PM
Well, yeah, but the for and while statements wouldn't work correctly without "do", so by logic it's actually the statement that requires an end, not the "do". "do" is just part of the statement.
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
18 Nov 2012 05:53 PM
@joalmo

No, by logic it's the 'do' that need the end because it's the 'do' that needs the end.

This errors:

do
print'hi'

This doesn't:

do
print'hi'
end

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]-
Report Abuse
Joalmo is not online. Joalmo
Joined: 28 Jun 2009
Total Posts: 1160
18 Nov 2012 05:55 PM
It errors because you forgot the parenthesis in print() ;)
Report Abuse
Joalmo is not online. Joalmo
Joined: 28 Jun 2009
Total Posts: 1160
18 Nov 2012 05:56 PM
Wait no it doesn't, you're right, my mistake, sorry
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