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: Simple code that won`t work.

Previous Thread :: Next Thread 
optigreen is not online. optigreen
Joined: 20 Apr 2010
Total Posts: 417
13 Oct 2013 02:17 PM
while true do
if Workspace.Terminal.Time.Value == 4
then

wait ()
workspace.barrier.cancolide = true
wait ()
workspace.barrier.Transparency = 0

end
end

Report Abuse
optigreen is not online. optigreen
Joined: 20 Apr 2010
Total Posts: 417
13 Oct 2013 02:21 PM
Bumpty Bump Bump
Report Abuse
PredationX is not online. PredationX
Joined: 09 Sep 2012
Total Posts: 1594
13 Oct 2013 02:25 PM
CanCollide* Things in Lua are case-sensitive.
Report Abuse
qrrrq is not online. qrrrq
Joined: 27 Jan 2013
Total Posts: 1252
13 Oct 2013 02:26 PM
I am not sure you need a while loop unless you are checking it, and you spelled a lot of things wrong, such as CanCollide. Also, Rbx.Lua is very case sensitive.

Corrected:

while wait() do
if Workspace.Terminal.Time.Value == 4 then
wait ()
workspace.barrier.CanCollide = true
wait ()
workspace.barrier.Transparency = 0
end
end
Report Abuse
optigreen is not online. optigreen
Joined: 20 Apr 2010
Total Posts: 417
13 Oct 2013 02:31 PM
Sorry I should of stated the problem. I keep getting a stack end at line 2.. Though everything is listed properly in my workspace.
Report Abuse
optigreen is not online. optigreen
Joined: 20 Apr 2010
Total Posts: 417
13 Oct 2013 02:31 PM
It wouldn't be because it starts off at 0, then works its way to 4?
Report Abuse
optigreen is not online. optigreen
Joined: 20 Apr 2010
Total Posts: 417
13 Oct 2013 02:44 PM
Script Fixed As Of 13/10/2013
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
13 Oct 2013 02:46 PM
^ intense non-US date format above
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