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 » Game Design
Home Search
 

Re: Move these bricks up?

Previous Thread :: Next Thread 
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
09 Aug 2015 05:22 AM
while wait(.1) do
spawn(function()
for i = 0, 1, 0.1 do
wait(.1)
Model.Part.Position = Vector3 * CFrame.new(0, i, 0.1)
end
for i = 0, 1, -.1 do
wait(.1)
Model.Part.Position = Vector3 * CFrame.new(0, i, -.1)
end
end)
end

should i be using a normal function instead of a spawn?
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
09 Aug 2015 05:26 AM
bump
Report Abuse
Qorm is not online. Qorm
Joined: 25 Jul 2010
Total Posts: 1650
09 Aug 2015 05:30 AM
what the................


f
Report Abuse
Qorm is not online. Qorm
Joined: 25 Jul 2010
Total Posts: 1650
09 Aug 2015 05:30 AM
you have a lot of problems with this sir
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
09 Aug 2015 05:31 AM
Explain yourself.
Report Abuse
Qorm is not online. Qorm
Joined: 25 Jul 2010
Total Posts: 1650
09 Aug 2015 05:35 AM
basically what this is doing is creating a function every 0.1 seconds without it even being called

also there is no point on even making the function if its the only thing going to be in the loop

you also cant subtract -0.1 until you get 1, its impossible (line 7)
Report Abuse
Qorm is not online. Qorm
Joined: 25 Jul 2010
Total Posts: 1650
09 Aug 2015 05:37 AM
(line 5) should be
Model.Part.Position = Model.Part.CFrame * CFrame.new(0, i, 0.1)
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
09 Aug 2015 05:43 AM
thanks
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
09 Aug 2015 05:46 AM
is this btter?

while wait(5) do
for i = 0, 1, 0.1 do
wait(.1)
Model.Part.Position = Model.Part.CFrame * CFrame.new(0, i, 0.1)
end
for i = 1, 0, -.1 do
wait(.1)
Model.Part.Position = Model.Part.CFrame * CFrame.new(0, i, -.1)
end
end
Report Abuse
Qorm is not online. Qorm
Joined: 25 Jul 2010
Total Posts: 1650
09 Aug 2015 05:48 AM
you got it champ
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
09 Aug 2015 05:48 AM
Thank you.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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