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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: First Script !

Previous Thread :: Next Thread 
LucidDesires is not online. LucidDesires
Joined: 18 Feb 2013
Total Posts: 141
28 Aug 2013 07:53 PM
Hi I Just made my First Script :DD Here it is:

game.Workspace.Part.Transparency = 0
wait(0.1)
game.Workspace.Part.Transparency = 0.1
wait(0.1)
game.Workspace.Part.Transparency = 0.2
wait(0.1)
game.Workspace.Part.Transparency = 0.3
wait(0.1)
game.Workspace.Part.Transparency = 0.4
wait(0.1)
game.Workspace.Part.Transparency = 0.5
wait(0.1)
game.Workspace.Part.Transparency = 0.6
wait(0.1)
game.Workspace.Part.Transparency = 0.7
wait(0.1)
game.Workspace.Part.Transparency = 0.8
wait(0.1)
game.Workspace.Part.Transparency = 0.9
wait(0.1)
game.Workspace.Part.Transparency = 0.10

The Reason I'm posting It here is because it gets visible at end again and IDK why.
X 0== (
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
28 Aug 2013 07:53 PM
0.10 = 0.1

1 is fully transparent
Report Abuse
RoyStanford is not online. RoyStanford
Joined: 21 Oct 2008
Total Posts: 2222
28 Aug 2013 07:53 PM
0.10 == 0.1

change last number to 1
Report Abuse
LucidDesires is not online. LucidDesires
Joined: 18 Feb 2013
Total Posts: 141
28 Aug 2013 07:57 PM
Dude 1 is a lot Bigger than 0.10 I Just Want Completely invisible..
Report Abuse
janthran is not online. janthran
Joined: 15 May 2009
Total Posts: 17429
28 Aug 2013 07:58 PM
...
1 is completely invisible, 0.10 is almost visible.
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
28 Aug 2013 08:03 PM
while true do
wait(0.1)
game.Workspace.Part.Transparency = 1
wait(0.1)
game.Workspace.Part.Transparency = 0.9
wait(0.1)
game.Workspace.Part.Transparency = 0.8
wait(0.1)
game.Workspace.Part.Transparency = 0.7
wait(0.1)
game.Workspace.Part.Transparency = 0.6
wait(0.1)
game.Workspace.Part.Transparency = 0.5
wait(0.1)
game.Workspace.Part.Transparency = 0.4
wait(0.1)
game.Workspace.Part.Transparency = 0.3
wait(0.1)
game.Workspace.Part.Transparency = 0.2
wait(0.1)
game.Workspace.Part.Transparency = 0.1
wait(0.1)
game.Workspace.Part.Transparency = 0
Report Abuse
LucidDesires is not online. LucidDesires
Joined: 18 Feb 2013
Total Posts: 141
28 Aug 2013 08:04 PM
Did You even pass 1st Grade?
0.9 + 0.1 = 0.10
Report Abuse
LucidDesires is not online. LucidDesires
Joined: 18 Feb 2013
Total Posts: 141
28 Aug 2013 08:05 PM
Sorry if iM Getting a bit Snappy but all I Want 2 know is where the Error is
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
28 Aug 2013 08:06 PM
0.9 + 0.1 = 1 -.-

~DevilDefeater - Popped your bubble~
Report Abuse
janthran is not online. janthran
Joined: 15 May 2009
Total Posts: 17429
28 Aug 2013 08:08 PM
You're an idiot.
Report Abuse
LucidDesires is not online. LucidDesires
Joined: 18 Feb 2013
Total Posts: 141
28 Aug 2013 08:08 PM
Here Let me make it Simple -_-

0.9 - 9
0.1 - 1
9 + 1 = 10
10 - 0.10
Report Abuse
129K is not online. 129K
Joined: 23 Aug 2011
Total Posts: 19010
28 Aug 2013 08:09 PM
@jan

No U R . . . 0.9 + 0.1 = 0.10 Nub, Did u even pass 1st grade?
Report Abuse
janthran is not online. janthran
Joined: 15 May 2009
Total Posts: 17429
28 Aug 2013 08:13 PM
I'm pretty sure OP is trolling
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
28 Aug 2013 08:16 PM
LucidDesires, 0.9 + 0.1 = 1.0; 9 + 1 = 10.
don't understand yet? here 'lemme go in-depth,
#.# = a decimal, whitch is different than a whole number.
An example of a decimal = 0.75
0.75 + 0.50 = 1.25
0.75 - 0.74.5 = 0.05
Thats explaining ever so slightly how the mathematics work, try understanding this;
0.5 = 0.50, which also = 0.500, and 0.5000, don't forget 0.50000, and so-on
0 = " " or nothing. the 0's don't matter unless their in a tight spot like 0.505
So does tat mean there is infinite 0's? yes.
then why does it come up as just 0.0?
Well, 10/12 (dived by) = 0.8333333333333333333333333333333333333333333333333333333333333333333-
well, there are infinite 3's.
so i writing we'd put a "-" over the number that repeats, only only put one there, but for 0's, they are commonly infinite so we don't worry about those.
so you can understand all of this;
0.9 + 0.9 does not = 0.18, it = 1.8
0.9 + 0.1 = 1.0, not 0.10.
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
28 Aug 2013 08:16 PM
Think of these as percents.

0.1 = 10%, as it is 1/10th of 1.
0.5 = 50%, as it is 1/2 of 1.
1 = 100%, as 1 is 1.

90% plus 10% ~= 10%.

If you don't believe me, do this in a calculator:

0.1 + 0.10, it will equal 0.2
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
28 Aug 2013 08:18 PM
Ah, yes lup. I usually imagine %'s as a decimal though. =P
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
28 Aug 2013 08:19 PM
Although Lup, it was 0.9 + 0.1, which is 1.0 =P
Report Abuse
dmjoe is not online. dmjoe
Joined: 01 May 2009
Total Posts: 2387
28 Aug 2013 08:19 PM
Why has nobody put this in a for loop yet?

~Keep the Earth below my feet.~
Report Abuse
janthran is not online. janthran
Joined: 15 May 2009
Total Posts: 17429
28 Aug 2013 08:19 PM
@dmjoe
someone did
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
28 Aug 2013 08:20 PM
Lol, dmjoe xD
Report Abuse
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
28 Aug 2013 08:29 PM
    0.5
+  0.5
----------
    1

You get .5 + .5 and get 0 and transfer then 1 unit.

Hundreds  /  Tens  /  Ones  /  Tenths  /  Hundreths  /  Thousandths
100.0               10.0       1.0          0.1              0.01                   0.001

Where each time the decimal moves to the left one place.

      5
+    5
----------
    10

5 and 5 both add up to ten. You move the 1 to the 'Tens' place and you are left with zero units in the 'Ones' place. So;

      0.9
+    0.1
----------
      1.0

Because 9 and 1 add up to 10. You move the 1 to the left to be added with the next set and keep the 0 in the set it was already in.

      0.7
+    0.5
----------
      1.2

Where 7 and 5 and up to 12 and the 2 is kept in its spot and 10 is moved over to be added with the set to the left, in this case, the 'Ones' place.

    for i = 0, 1, 0.1 do
        Workspace.Part.Transparency = i
        wait(0.1)
    end
Report Abuse
dmjoe is not online. dmjoe
Joined: 01 May 2009
Total Posts: 2387
28 Aug 2013 08:32 PM
^ For loop makes dm happy ;3

~Keep the Earth below my feet.~
Report Abuse
LucidDesires is not online. LucidDesires
Joined: 18 Feb 2013
Total Posts: 141
28 Aug 2013 08:49 PM
i Dont want you're math lessons i just Wanna know where the freaking Error is ...
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
28 Aug 2013 08:55 PM
I told you.

The last transparency change should be to 1, not 0.10
Report Abuse
dmjoe is not online. dmjoe
Joined: 01 May 2009
Total Posts: 2387
28 Aug 2013 08:57 PM
It's not just the math lessons you need.... "you're" English isn't that good either.

~Keep the Earth below my feet.~
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