Pistol shell not moving from the air?
So i scripted a gun and when i shoot the gun the shell thats meant to come out stays in the air i tryed add velocity
1 | local ShellProfile = game.Lighting.ShellStorage.RugerShell:Clone() |
2 | ShellProfile.CanCollide = true |
3 | ShellProfile.BulletInfo.Frame.Who.Text = ".45ACP | " ..script.Parent.Parent.Name.. " | " ..script.Parent.Name.. "" |
4 | ShellProfile.Elasticity = 0 |
5 | ShellProfile.Size = Vector 3. new(. 3 ,. 3 ,. 5 ) |
6 | ShellProfile.Position = script.Parent.Handle.Position + Vector 3. new( 0 , 1 , 0 ) |
7 | ShellProfile.Velocity = script.Parent.Barrel.CFrame.lookVector * 30 + Vector 3. new(math.random(- 10 , 10 ), 20 ,math.random(- 10 , 10 )) |
8 | ShellProfile.RotVelocity = Vector 3. new( 0 , 200 , 0 ) |
9 | ShellProfile.Parent = game.Workspace |
that is my script may someone help the shell just stays in the air.