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: Why dosen't this script mwork?

Previous Thread :: Next Thread 
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
25 Aug 2013 08:42 AM
for i = 1, 100 do
player = game.Players.LocalPlayer
if i == 1 then
player.Character:MoveTo(Vector3.new(116.4, 5.2, -140.5))
if i == 100
then player.Character.Humanoid.Health = 0
player.Character:MoveTo(Vector3.new(116.4, 5.2, -140.5))

wait(10)
end
end
end
Report Abuse
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
25 Aug 2013 08:44 AM
TELL US WHAT U WANNA DO FIRST.
Report Abuse
funnymouse7 is not online. funnymouse7
Joined: 17 Mar 2011
Total Posts: 1741
25 Aug 2013 08:44 AM
Im not 100% sure but I think for loops dont print the first number example:

for i = 1, 100 do
print(i)
end

output:
2
3
4


it doesnt print 1


this is a -siggy-

~Bumpy the Bumper,
hes a very happy bump,
he will bump everywhere,
so dont bother to care,
dont scream its not fair,
as he will not reply,
and you'll end up with a sigh,
so bye bye,
and please reply,
to this very nice little post~
Report Abuse
strongalphawarrior is not online. strongalphawarrior
Joined: 27 Jun 2011
Total Posts: 1000
25 Aug 2013 08:53 AM
Funny

No

It prints the starting value and inbetween up til ending value
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