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
 

Workspace.Part.Script:3: 'then' expected near '=' -- WHAT?

Previous Thread :: Next Thread 
David1010100 is not online. David1010100
Joined: 14 Jun 2009
Total Posts: 3242
08 Aug 2011 05:00 AM
Trigger = game.Workspace.Trigger
while true do
if Trigger.BrickColor = "Bright red" then
for i = 0.01, 500 do
wait(0.01)
script.Parent.CFrame = script.Parent.CFrame + CFrame.new(0, 0, 0.01)
end
for i = 0.01, 300 do
wait(0.01)
script.Parent.CFrame = script.Parent.CFrame + CFrame.new(-0.01, 0, 0)
end
end


I don't get what I have to do.
Report Abuse
Ravenshield is not online. Ravenshield
Joined: 21 Nov 2007
Total Posts: 4143
08 Aug 2011 05:06 AM
Double == in if-statements.

if a == b then
Report Abuse
David1010100 is not online. David1010100
Joined: 14 Jun 2009
Total Posts: 3242
08 Aug 2011 05:08 AM
Thanks, I forgot. I allways forget ==, <=, >= and ~=
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