BodyVelocity does absolutely nothing?
Hi. I was making a fireball script, but the BodyVelocity does not make the fireball move - it just sits there and doesn't move at all. Here is the full (but still being worked on) script:
01 | local player = game.Players.LocalPlayer |
02 | local char = player.Character |
04 | local mouse = player:GetMouse() |
06 | local RS = t [ "Right Shoulder" ] |
07 | local LS = t [ "Left Shoulder" ] |
08 | local RH = t [ "Right Hip" ] |
09 | local LH = t [ "Left Hip" ] |
11 | mouse.KeyDown:connect( function (key) |
12 | if key:lower() = = "f" then |
13 | local fireb = Instance.new( "Part" , char.Torso) |
15 | fireb.CanCollide = false |
16 | fireb.Position = char.Torso.Position |
17 | fireb.BrickColor = BrickColor.new( "Deep orange" ) |
18 | fireb.Transparency = 0.5 |
19 | fireb.Size = Vector 3. new( 4 , 4 , 4 ) |
20 | fireb.CFrame = t.CFrame * CFrame.new( 0 , 0 , - 10 ) |
22 | fireb.TopSurface = "Smooth" |
23 | fireb.BottomSurface = "Smooth" |
24 | local b = Instance.new( "BodyVelocity" ) |
25 | b.MaxForce = Vector 3. new( math.huge , math.huge , math.huge ) |
26 | b.Velocity = char.Torso.CFrame.lookVector * 80 |
28 | local fire = Instance.new( "ParticleEmitter" , fireb) |
29 | fire.Color = ColorSequence.new(Color 3. new( 0.75 , 0.75 , 0 )) |
31 | fire.EmissionDirection = "Back" |
32 | fire.Lifetime = NumberRange.new( 2.5 , 2.5 ) |
33 | game:GetService( "Debris" ):AddItem(fireb, 5 ) |