Bodyvelocity help, parts not floating upward when script activates?
Alright so basically I put bodyvelocity in a part so I can make the part float upward but it didn't work I even tried raising the force and velocity any idea why this isn't working? Also no errors in output.
here is the code
01 | p = script.Parent.Parent |
12 | h = Instance.new( "Part" ,game.Workspace) |
13 | h.Size = Vector 3. new(math.random( 1 , 2 ),. 35 ,math.random( 1 , 5.5 )) |
14 | h.BrickColor = BrickColor.new( "Pastel brown" ) |
15 | h.TopSurface = "Smooth" |
16 | h.BottomSurface = "Smooth" |
18 | g = Instance.new( "BodyVelocity" ,h) |
19 | g.maxForce = Vector 3. new( 0 , math.huge , 0 ) |
21 | g.Velocity = Vector 3. new( 0 , math.huge , 0 ) |
22 | h.CFrame = c.Torso.CFrame*CFrame.new(math.random(- 1 , 2 ),- 1 , 0 ) |
27 | mouse.KeyDown:connect(charge) |