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 » Roblox » All Things ROBLOX
Home Search
 

Re: Guys! I wrote my first script!

Previous Thread :: Next Thread 
jareth132 is not online. jareth132
Joined: 13 Mar 2008
Total Posts: 2581
01 Dec 2013 03:30 AM
It's nothing impressive, but it's the first script I've FULLY wrote myself. Up until now it's just been edits and repairs.


Workspace.Part.Transparency = 1
wait(1)
Workspace.Part.Transparency = 0
wait(1)
Workspace.Part.Transparency = 0
wait(1)
Workspace.Part.Transparency = 1
loop(8)







Report Abuse
Modoveex is not online. Modoveex
Joined: 21 Mar 2009
Total Posts: 8057
01 Dec 2013 03:31 AM
Please refer to workspace as 'workspace' rather than 'Workspace'.
Report Abuse
smiley444 is not online. smiley444
Joined: 14 Oct 2009
Total Posts: 1612
01 Dec 2013 03:32 AM
Congrats! I have been trying to master the art of scripting, just doesn't stay in my mind... heh. I am glad to say that you may become very popular if you follow this path. Well done.

______________________
Doge is used for Defense
Report Abuse
TheDarkHeartLord is not online. TheDarkHeartLord
Joined: 09 Aug 2009
Total Posts: 2746
01 Dec 2013 03:32 AM
[ Content Deleted ]
Report Abuse
Modoveex is not online. Modoveex
Joined: 21 Mar 2009
Total Posts: 8057
01 Dec 2013 03:33 AM
'loop(8)' doesn't work.

local counter = 0
while counter <8 do
counter = counter + 1
workspace.Part.Transparency = 1
wait(1)
workspace.Part.Transparency = 0
wait(2)
end
workspace.Part.Transparency = 1

Fixed it for you.
Report Abuse
Modoveex is not online. Modoveex
Joined: 21 Mar 2009
Total Posts: 8057
01 Dec 2013 03:35 AM
local counter = 0 -- set variable 'counter' to 0, so we can start counting
while counter <8 do -- as long as variable 'counter' is less than 8, execute the following
counter = counter + 1 -- set variable 'counter' up by 1
workspace.Part.Transparency = 1 -- set workspace.Part's transparency to 1
wait(1) -- wait 1 second
workspace.Part.Transparency = 0 -- set workspace.Part's transparency to 0
wait(2) -- wait 2 seconds
end -- end of loop
workspace.Part.Transparency = 1 -- lastly, put transparency to 1 (as you intended)
Report Abuse
jareth132 is not online. jareth132
Joined: 13 Mar 2008
Total Posts: 2581
01 Dec 2013 03:36 AM
That's a wee bit past what I've learned, but thanks for the revision anyways
Report Abuse
jareth132 is not online. jareth132
Joined: 13 Mar 2008
Total Posts: 2581
01 Dec 2013 03:36 AM
Thanks for the walkthrough too, that'll actually probably be something I refer back to when working with loops
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » All Things ROBLOX
   
 
   
  • 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