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
 

Brick that moves up and down when message is said.

Previous Thread :: Next Thread 
Bossbotkid is not online. Bossbotkid
Joined: 08 Jul 2009
Total Posts: 51
03 Jan 2013 04:26 PM
Can anyone help me make a brick that moves up and down when a message is said? Like an elevator? Every time I try to make one, it fails... I don't know the script that is needed for the message part. I'm a terrible scripter and/or programmer so anything will help..
Report Abuse
Bossbotkid is not online. Bossbotkid
Joined: 08 Jul 2009
Total Posts: 51
03 Jan 2013 04:30 PM
So far I have:

s = script
g = game.Workspace
Car = s.Parent.Parent.Platform
-------------------------
if string.find(string.lower(msg), "up") ~= nil
then
Car.BodyVelocity.velocity = Vector3.new(0, 10, 0)
end


This didn't work any other suggestions?
Report Abuse
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
03 Jan 2013 04:35 PM
Use cframe.
Report Abuse
Bossbotkid is not online. Bossbotkid
Joined: 08 Jul 2009
Total Posts: 51
03 Jan 2013 04:50 PM
How do I do that? Use it in the script?As I said I am a extreme noob at scripting.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
03 Jan 2013 04:52 PM
@yellow. Well he had car, so it's model. Using BodyVelocity to move it up should be just fine.
Report Abuse
Bossbotkid is not online. Bossbotkid
Joined: 08 Jul 2009
Total Posts: 51
03 Jan 2013 04:54 PM
@zars. Thanks but every time I try it it fails? Is there anyway I can change it from a model so it works better?
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
03 Jan 2013 04:56 PM
try increasing the velocity by a lot.

is the bodyvelocity in a part?

¬ LuaLearners Elite/Writer
Report Abuse
Bossbotkid is not online. Bossbotkid
Joined: 08 Jul 2009
Total Posts: 51
03 Jan 2013 05:00 PM
It's inside the platform and/or the car I think. Should it be in a different part? I know if I were to use a button I would have to
Report Abuse
Bossbotkid is not online. Bossbotkid
Joined: 08 Jul 2009
Total Posts: 51
03 Jan 2013 05:01 PM
use a different part.
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