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: Object Moving Help

Previous Thread :: Next Thread 
aka303 is not online. aka303
Joined: 25 May 2012
Total Posts: 2063
05 Jan 2014 03:53 PM
I used this script:
Energy.Position = Energy.CFrame * Vector3.new(0, 0, -1)
To move Energy forwards. It moves it forwards, but I made a seperate script that kills a player when energy is touched by that player. However, instead of touching the dummy i made, it moves above it when it gets too close. Can you tell me why this happens, and how to fix it so it still goes forward, but touches the player?

NOTE: What I have above is only the line that move it. I you need the whole script, I can paste that. Also, I can make the tool a model so you can see what I mean.
Report Abuse
aka303 is not online. aka303
Joined: 25 May 2012
Total Posts: 2063
05 Jan 2014 04:07 PM
bump
Report Abuse
aka303 is not online. aka303
Joined: 25 May 2012
Total Posts: 2063
05 Jan 2014 04:23 PM
bump again
Report Abuse
orangebaron is not online. orangebaron
Joined: 10 Mar 2012
Total Posts: 686
05 Jan 2014 04:30 PM
Energy.CFrame = Energy.CFrame - Vector3.new(0, 0, 1)

USE DA PROPR GRAMR BOI<---my siggy
Report Abuse
aka303 is not online. aka303
Joined: 25 May 2012
Total Posts: 2063
05 Jan 2014 04:45 PM
It didn't work. It only sends it in one direction. Can you make it so it sends it in the directon it is facing?
Report Abuse
aka303 is not online. aka303
Joined: 25 May 2012
Total Posts: 2063
05 Jan 2014 05:39 PM
bump 3
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
05 Jan 2014 05:41 PM
Energy.CFrame = Energy.CFrame * CFrame.new(0, 0, 1)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
05 Jan 2014 05:45 PM
The direction it's facing by 1 stud is:

Energy.CFrame = Energy.CFrame * CFrame.new(0, 0, -1)
Report Abuse
aka303 is not online. aka303
Joined: 25 May 2012
Total Posts: 2063
05 Jan 2014 05:47 PM
Thanks, it works!
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