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: Help on simple script

Previous Thread :: Next Thread 
TURBOTAKEOVER is not online. TURBOTAKEOVER
Joined: 31 Oct 2011
Total Posts: 17
18 Jul 2012 07:09 PM
k = 0

while k < 1 do
wait(1)
print("Generating Ko's")
print (k)
k = k + 0.10
if k = 1 then <----
print("Your Ko's have been generated!")
end
end


Workspace.Script:8: 'then' expected near '='
help me fix that please
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
18 Jul 2012 07:09 PM
k = 0

while k < 1 do
wait(1)
print("Generating Ko's")
print (k)
k = k + 0.10
if k == 1 then <----
print("Your Ko's have been generated!")
end
end
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
18 Jul 2012 07:10 PM
k = 0

while k < 1 do
wait(1)
print("Generating Ko's")
print (k)
k = k + 0.10
if k == 1 then <----
print("Your Ko's have been generated!")
end
end

When you use the = symbol, your setting something equal to something else.

Using == is comparing two values.
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
18 Jul 2012 07:32 PM
wow, you guys are nicer then the guys on my threads... :P
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
18 Jul 2012 07:33 PM
@piepienoob - Because his question involved fixing his OWN script, not fixing a free model or making a script FOR him.
Report Abuse
Joalmo is not online. Joalmo
Joined: 28 Jun 2009
Total Posts: 1160
18 Jul 2012 07:33 PM
Because this guy isn't posting tons of lines of code and saying "LOL do this fer me".
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
18 Jul 2012 07:39 PM
DER HEER! hide__ (o.o)__
_ l__l__l__l__l__l_
l__l__l__l__l__l__l
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
18 Jul 2012 07:42 PM
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((o.o)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
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