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: For statement not working.

Previous Thread :: Next Thread 
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
05 Oct 2012 03:12 PM
for i = 1,100 do
game.Workspace.Hey:MoveTo(Vector3.new(380.5, i, -464))
wait()
print("LOL WORK")
wait(15) --Waits 15 seconds before going back down.
for a = 100,1,1 do
game.Workspace.Hey.MoveTo(Vector3.new(380.5, i, -464))
wait()
end
end
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
05 Oct 2012 03:13 PM
I've tried:


for i = 1,100 do
game.Workspace.Hey:MoveTo(Vector3.new(380.5, i, -464))
wait()
print("LOL WORK")
end

for a = 100,1,1 do
game.Workspace.Hey.MoveTo(Vector3.new(380.5, i, -464))
wait()
end

But that only comes up and doesn't come back down.
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
05 Oct 2012 03:14 PM
for i = 1,100 do
game.Workspace.Hey:MoveTo(Vector3.new(380.5, i, -464))
wait(0.1)
end
wait(15) --Waits 15 seconds before going back down.
for a = 100,1, do
game.Workspace.Hey.MoveTo(Vector3.new(380.5, i, -464))
wait(0.1)
end
print("LOL WORK")
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
05 Oct 2012 03:16 PM
local a = Instance.new("Message",game.Players.blackboy167thst.PlayerGui)
a.Text = "LOL IT NO WORK! RAIGEEEE"
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
05 Oct 2012 03:23 PM
for i = 1,100 do
game.Workspace.Hey:MoveTo(Vector3.new(380.5, i, -464))
wait(0.1)
end
wait(15) --Waits 15 seconds before going back down.
for a = 100,1 do
game.Workspace.Hey.MoveTo(Vector3.new(380.5, i, -464))
wait(0.1)
end
print("LOL WORK")
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
05 Oct 2012 03:27 PM
@Black
lol fail
for i = 1,100 do
game.Workspace.Hey:MoveTo(Vector3.new(380.5, i, -464))
wait(0.1)
end
wait(15) --Waits 15 seconds before going back down.
for a = 100,1, -1 do --You need to specify how much it adds onto to get to the second number, default is 1
game.Workspace.Hey.MoveTo(Vector3.new(380.5, i, -464))
wait(0.1)
end
print("LOL WORK")
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
05 Oct 2012 03:29 PM
Went all the way up.. But didn't come back down.
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
05 Oct 2012 03:29 PM
My post was going to blackboy..
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
05 Oct 2012 03:32 PM
@mamaguy: Yours did the same as blackboy's.
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
05 Oct 2012 03:37 PM
Just noticed something else,
for i = 1,100 do
game.Workspace.Hey:MoveTo(Vector3.new(380.5, i, -464))
wait(0.1)
end
wait(15) --Waits 15 seconds before going back down.
for a = 100,1, -1 do --You need to specify how much it adds onto to get to the second number, default is 1
game.Workspace.Hey.MoveTo(Vector3.new(380.5, a, -464))
wait(0.1)
end
print("LOL WORK")
He didn't change the second variable in :MoveTo to a, not i.
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
05 Oct 2012 03:41 PM
wdf? How is this simple script not working?


@Mama; Still didn't work.
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
05 Oct 2012 03:48 PM
Then fix it
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
05 Oct 2012 03:49 PM
.Hey.MoveTo(Vector3.new(380.5, a, -464))

Should be
.Hey:MoveTo(Vector3.new(380.5, a, -464))

Blind people..
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
05 Oct 2012 03:55 PM
@Chop,
So now we're blind if we do not see something?
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
05 Oct 2012 04:22 PM
for i = 1,100 do
game.Workspace.Hey:MoveTo(Vector3.new(380.5, i, -464))
wait(0.1)
end
wait(15) --Waits 15 seconds before going back down.
for a = 100,1 do
game.Workspace.Hey.MoveTo(Vector3.new(380.5, a, -464))
wait(0.1)
end
print("LOL WORK")
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
05 Oct 2012 04:23 PM
for i = 1,100 do
game.Workspace.Hey:MoveTo(Vector3.new(380.5, i, -464))
wait(0.1)
end
wait(15) --Waits 15 seconds before going back down.
for a = 100,1 do
game.Workspace.Hey:MoveTo(Vector3.new(380.5, a, -464))
wait(0.1)
end
print("LOL WORK")
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
05 Oct 2012 04:23 PM
Lol, spam. :3 That one should work. ^
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