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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
CaptainRuno is not online. CaptainRuno
Joined: 03 Sep 2011
Total Posts: 476
01 Mar 2012 05:26 PM
I have just started to learn how to script and im learning how to make loops
on the LuaLearners site and this script does not seem to work:

Door = Game.Workspace.Door

while true do
Wait (15)
Door.Transparency = 1
Door.CanCollide false
Wait (30)
Door.Transparency = 0
Door.Cancollide true

end

Can you fix it?
Report Abuse
ServerHax is not online. ServerHax
Joined: 29 Feb 2012
Total Posts: 16
01 Mar 2012 05:27 PM
NEVER capitalize game in a script.... Always do it like this... game.Workspace or any other service in game.
Report Abuse
Ravenshield is not online. Ravenshield
Joined: 21 Nov 2007
Total Posts: 4143
01 Mar 2012 05:27 PM
CanCollide is a property, like the Transparency. You need to set it.

Door = Game.Workspace.Door

while true do
Wait (15)
Door.Transparency = 1
Door.CanCollide = false
Wait (30)
Door.Transparency = 0
Door.CanCollide = true

end
Report Abuse
oxcool1 is not online. oxcool1
Joined: 05 Nov 2009
Total Posts: 15444
01 Mar 2012 05:28 PM
[ Content Deleted ]
Report Abuse
ServerHax is not online. ServerHax
Joined: 29 Feb 2012
Total Posts: 16
01 Mar 2012 05:31 PM
@oxcool1

--Last I checked that didn't work unless of updates
thread.oxcool1.Ideas.Value = "Intermittent"
Report Abuse
oxcool1 is not online. oxcool1
Joined: 05 Nov 2009
Total Posts: 15444
01 Mar 2012 05:34 PM
[ Content Deleted ]
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
01 Mar 2012 05:37 PM
I've heard it can be used, but does that make "game" deprecated?

† KMXD †
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
01 Mar 2012 05:43 PM
@knight
Possibly, the Admins like PascalCase.

However they can never remove the game variable - since that would break nearly every script on Roblox.
Report Abuse
CaptainRuno is not online. CaptainRuno
Joined: 03 Sep 2011
Total Posts: 476
01 Mar 2012 05:49 PM
Thank you for helping me :)
Report Abuse
CaptainRuno is not online. CaptainRuno
Joined: 03 Sep 2011
Total Posts: 476
01 Mar 2012 06:04 PM
IT WORKS! Thank you
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