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: What's wrong with this script?

Previous Thread :: Next Thread 
eviljeffhardy21 is not online. eviljeffhardy21
Joined: 07 May 2011
Total Posts: 22117
11 Aug 2012 08:16 PM
while true do
game.Workspace.Part.Transparency = 1
wait(5)
game.Workspace.Part.Locked = true
wait(3)
game.Workspace.Part.Transparency = 0
print("I did it!") --My first script!

And what would the correct script be?
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
11 Aug 2012 08:17 PM
Put an end at the end of it.

while true do
game.Workspace.Part.Transparency = 1
wait(5)
game.Workspace.Part.Locked = true
wait(3)
game.Workspace.Part.Transparency = 0
print("I did it!") --My first script!
end



For every "function", "if" or "do" in the script, you need 1 matching "end".
Report Abuse
EndObesity is not online. EndObesity
Joined: 10 Aug 2012
Total Posts: 285
11 Aug 2012 08:18 PM
@dr01
She's right. You also forgot to use batch.
Report Abuse
eviljeffhardy21 is not online. eviljeffhardy21
Joined: 07 May 2011
Total Posts: 22117
11 Aug 2012 08:20 PM
Oh right, I forgot about end for every function. Thanks.
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
11 Aug 2012 08:20 PM
@End:
1) I'm a boy.
2) Roblox only supports Lua.
3) Java <3.
Report Abuse
EndObesity is not online. EndObesity
Joined: 10 Aug 2012
Total Posts: 285
11 Aug 2012 08:22 PM
@dr01

Your avatar is misleading. Also, I know that roblox only supports lua. However, I was feeling a bit trollish with the batch today. Know what I'm sayin'?

~END OBESITY
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
11 Aug 2012 08:23 PM
My avatar is to look like my favourite singer, and ok...
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