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: How Do I make a part go in the same direction I'm facing?

Previous Thread :: Next Thread 
ForgottenGloom is not online. ForgottenGloom
Joined: 30 Oct 2015
Total Posts: 68
11 Jul 2017 12:08 PM
I'm currently trying to make a Fireball Shooter and How Do I make a part go in the same direction I'm facing?
Report Abuse
SinisterMemories is not online. SinisterMemories
Joined: 21 Mar 2013
Total Posts: 4892
11 Jul 2017 12:10 PM
.LookVector


#code print("oh no an errorz!")
Report Abuse
SquidyBroh is not online. SquidyBroh
Joined: 08 Jul 2015
Total Posts: 221
11 Jul 2017 12:10 PM
BodyVelocity = Instance.new('BodyVelocity', Part)
BodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
BodyVelocity.P = 100000
BodyVelocity.Velocity = HumanoidRootPart.CFrame.p + HumanoidRootPart.CFrame.lookVector * Speed
Report Abuse
UnRandomizing is not online. UnRandomizing
Joined: 20 Jun 2012
Total Posts: 1490
11 Jul 2017 12:16 PM
local player; --Define this
local fireball = Instance.new("Part")

local lookVector = player.Character.Torso.CFrame.lookVector
fireball.CFrame = player.Character.Head.CFrame + lookVector*Vector3.new(0,0,5)
fireball.Velocity = lookVector*Vector3.new(400, -196.2, 400)
Report Abuse
ForgottenGloom is not online. ForgottenGloom
Joined: 30 Oct 2015
Total Posts: 68
11 Jul 2017 12:28 PM
Still doesn't work. It Doesn't go forward.
Report Abuse
Nikkulai is online. Nikkulai
Joined: 01 Jun 2014
Total Posts: 946
11 Jul 2017 01:39 PM
I got you bro

Fireball.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
BV = Instance.new("BodyVelocity")
BV.maxForce = Vector3.new(math.huge, math.huge, math.huge)
BV.velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*80
Fireball.Parent = game.Workspace
BV.Parent = Fireball
Report Abuse
ForgottenGloom is not online. ForgottenGloom
Joined: 30 Oct 2015
Total Posts: 68
11 Jul 2017 01:57 PM
Thx it worked
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