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 » Scripters
Home Search
 

Re: Body Velocity?

Previous Thread :: Next Thread 
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 11:31 AM
When I rotate my part sideways so it's Y axis is on the side and set the Body Velocity to 300 in the Y axis it goes up instead of making the part go the way it was rotated. Sorry if you didn't understand, please tell me if you didn't. This is quite hard to explain lol


The noobs shall be eradicated.
Report Abuse
Poseidas is not online. Poseidas
Joined: 23 Nov 2008
Total Posts: 2659
30 Sep 2015 11:44 AM
Are you using the part's Velocity or are you using a BodyVelocity object?
Report Abuse
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 11:55 AM
BodyVelocity, is there anything else I could use that would act the same but would relate to the objects rotation?


The noobs shall be eradicated.
Report Abuse
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 12:17 PM
Please?? I've been trying to make this stupid thing for like couple of months now, but I can't because Roblox was stupid enough to make it not possible to do hit detection with parts that are being cframed, so I'm left with bodyvelocity which is horrible when trying to make a brick move the way your torso is facing at the same speed every time.... I'm seriously really frustrated right now :/ please heelp


The noobs shall be eradicated.
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
30 Sep 2015 12:18 PM
BodyVelocity = Part.CFrame.lookVector * BodyVelocity
Report Abuse
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 12:22 PM
You literally didn't read anything I said, pleaseeee read my problem thoroughly because I need a lot of help with this


The noobs shall be eradicated.
Report Abuse
Eauz is not online. Eauz
Joined: 23 Jul 2013
Total Posts: 2942
30 Sep 2015 12:40 PM
Did you figure out the terrain generation thing?

http://www.roblox.com/Eauz-1080p-item?id=291584308
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
30 Sep 2015 12:40 PM
If I read your post correctly, I think you should try BodyAngularVelocity. Or AngularBodyVelocity, whatever it's called. :P
Report Abuse
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 12:48 PM
No I didn't figure it out, but I might soon.

What my problem is is that I'm trying to make a beam aka kamehameha for those dbz fans out here, and I need this ball to fly forwards at a constant speed which is always the same no matter the rotation of my character, I cannot achieve this using body velocity because when my character turns in different ways the ball keeps getting faster or slower. I need it to be at a constant speed because I want it to be in front of a cylinder so it looks right, here are some pictures as an example

The way I want it to always look:
http://prnt.sc/8m95il

The way it looks sometimes because the speed is different when I rotate my character:
http://prnt.sc/8m95nb


The noobs shall be eradicated.
Report Abuse
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 12:56 PM
Could someone please fix it, I can give you the script :/


The noobs shall be eradicated.
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
30 Sep 2015 01:12 PM
Eradicate, something I've learned yesterday, if your code is over 70 lines long, people will get feisty. So I don't think it would be a good idea to post it here. Trust me...
Report Abuse
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 01:19 PM
Well it's in a local script which is like 3k lines long but I can make it into a tool which they could try editing and helping me :/ the tool would be around 70 lines long, it only looks long on the forum, it's actually short when you think about it and the part that needs to be fixed is only like 10 lines long. Well it doesn't need fixing, it works, but it doesn't work the way I want it to work :/ halp


The noobs shall be eradicated.
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
30 Sep 2015 01:21 PM
If you posted the script it would be another World War in the scripting helpers forum.
Report Abuse
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 01:25 PM
No but seriously could someone please remake the movement part of my script please, OR please help me with the touched function which only works when the part is being moved by bodyvelocity or something, how would I make it work when the part is being cframed? I heard you can do this :/

Workspace.Part.Touched:connect(function(otherPart)
print(otherPart)
end)


The noobs shall be eradicated.
Report Abuse
IllegallyBlind is not online. IllegallyBlind
Joined: 07 Nov 2010
Total Posts: 1691
30 Sep 2015 01:40 PM
If you post a script more than 15 lines you should be shunned deservingly.


Instance.new("BodyThrust" , Illegallyblind.Pelvis)
Report Abuse
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 02:01 PM
omg please help D;


The noobs shall be eradicated.
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
30 Sep 2015 02:29 PM
I cannot quite recall if BodyVelocity operates in world-space but I assume it does from what you've said

BodyVelocity.Velocity = Part.CFrame:pointToObjectSpace(Vector3.new(0,1,0)) * 300


Red Blossoms
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
30 Sep 2015 02:29 PM
agh sorry im dumb dont listen to me


Red Blossoms
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
30 Sep 2015 02:37 PM
nvm that should be right
i just tested wrong


Red Blossoms
Report Abuse
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 03:30 PM
So I did this V.Velocity = p.CFrame:pointToObjectSpace(Vector3.new(0,1,0)) and the part just started going down and to the left behind me really fast, changing the values didn't work... I'm so annoyed aghhhhhhh


The noobs shall be eradicated.
Report Abuse
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 03:52 PM
Ok so I have this V.Velocity = p.CFrame.lookVector * 300 but the speed changes when I rotate my character in different ways, what do I change 300 to or divide this by to make it the same speed everytime. If this helps then I'm trying to move a block 300 studs in 1.65 seconds, I'd appreciate if you fix this for me, I've been trying for so long e.e thanks


The noobs shall be eradicated.
Report Abuse
vasa43052 is not online. vasa43052
Joined: 03 Apr 2015
Total Posts: 4438
30 Sep 2015 03:58 PM
im dumb
Report Abuse
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 04:04 PM
omg get out, you could help me instead of speaking bs


The noobs shall be eradicated.
Report Abuse
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 04:14 PM
please


The noobs shall be eradicated.
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
30 Sep 2015 07:25 PM
Looked back at what you said.

Try this?

script.Parent.Velocity = script.Parent.CFrame.lookVector * 50
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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