of     1   

someman
#36445273Wednesday, November 03, 2010 5:48 PM GMT

So... You guys help me make a rocket that goes up. But now I would like a script to get the Velocity and Position of the Y variables... and change the name of a model into the Height/Speed. I would like two scripts. But if you want, you can put them together. I tried this, but I have no idea on what to do... ------------------ P.Y = game.Workspace.Fuselage.Position.Y while true do wait(2.5) game.Workspace.CompletePanel.Altitude.Name = #P.Y "Studs" end
oysi93
#36445336Wednesday, November 03, 2010 5:52 PM GMT

I recommend you to learn about variables, properties, and vectors. =) local Obj = Worksapce.Fuselage while true do wait(2.5) local Altitude = math.floor(Obj.Position.Y + 0.5) .. " Studs" local Velocity = math.floor(Obj.Velocity.magnitude + 0.5) .. " Studs/Sec" -- Do st00fz with those variables -- end
someman
#36445374Wednesday, November 03, 2010 5:54 PM GMT

I know right. >_> I always seem to forget the Vector3.new's. I could work on variables. I know a bit about properties, just get occasional errors. Thanks again anyways.
someman
#36445406Wednesday, November 03, 2010 5:56 PM GMT

And this script goes in Workspace... Correct?
oysi93
#36445424Wednesday, November 03, 2010 5:57 PM GMT

Pretty much anywhere it will run. =P Though that won't do anything as of yet, you need to output it in some way. And the way you did it before wouldnt't work, hence I recommended you to learn more about properties.
someman
#36445541Wednesday, November 03, 2010 6:03 PM GMT

Now... Um, how do I get it to update itself since it changes the name?
oysi93
#36445560Wednesday, November 03, 2010 6:04 PM GMT

If you've read the very basics in the wiki, or learnt it in another way, you'd know this. So please, go learn how to script before you try doin' it. =)
someman
#36445607Wednesday, November 03, 2010 6:06 PM GMT

Yeah I'm too lazy to do that right now... But how do I know if the name changes? game.Workspace.CompletePanel.altitude.Name = "Altitude" :o
someman
#36445760Wednesday, November 03, 2010 6:13 PM GMT

Nope... Help me, please?
someman
#36445987Wednesday, November 03, 2010 6:23 PM GMT

Oysi... :( Trappingnoobs... :( Where are you guys?!? D:
Combrad
#36446212Wednesday, November 03, 2010 6:31 PM GMT

Brick = LOCATE YOUR BRICK TextA = Where the altitude will go TextB = Where the speed will go for i = 1,#math.huge do Altitude = math.floor(Brick.Position.Y + 0.5) Speed = math.floor(Brick.Velocity.magnitude + 0.5) TextA.Text = "Height : "..Altitude TextB.Text = "Speed : "..Speed wait(1) end
someman
#36446310Wednesday, November 03, 2010 6:34 PM GMT

But its going on a brick. So will it work? It isnt going in a message or hint.
Gojira34
#36446643Wednesday, November 03, 2010 6:45 PM GMT

Brick = LOCATE YOUR BRICK TextA = Where the altitude will go TextB = Where the speed will go while true do wait(1) Altitude = math.floor(Brick.Position.Y + 0.5) Speed = math.floor(Brick.Velocity.magnitude + 0.5) TextA.Name = "Height : "..Altitude TextB.Name = "Speed : "..Speed end
oysi93
#36446725Wednesday, November 03, 2010 6:48 PM GMT

Read my post again, please. =)

    of     1