|
| 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
|
  |
| 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 |
|
|
| |
|
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 |
|
|
|
| 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
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 18 Nov 2012 04:36 PM |
| I stand corrected, then. ^^ |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 18 Nov 2012 05:41 PM |
#Eddy,
until in
Does do not require 'ends'. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|