I am attempting to make the bullet lighter so it doesn't fall to the ground eventually. I was wondering what is causing my error. Any help would be appreciated.

--Bullet Creation
	local bullet = Instance.new("Part")
	bullet.CFrame = Gun.Flame.CFrame
	bullet.Size = Vector3.new(0.2, 0.2, 6.2)
	bullet.CanCollide = false	
	bullet.Name = "Bullet"
	bullet.Velocity = Gun.Flame.CFrame.lookVector * 1400
	bullet.Parent = game.Workspace
	bullet.Material = Enum.Material.Neon
	bullet.BrickColor = BrickColor.White()
	bullet.CustomPhysicalProperties.Enabled = true
	bullet.CustomPhysicalProperties.Density = 0
	bullet.CustomPhysicalProperties.Friction = 0
	bullet.CustomPhysicalProperties.Elasticity = 0
	bullet.CustomPhysicalProperties.FrictionWeight = 0
	bullet.CustomPhysicalProperties.ElasticityWeight = 0	

3 comments

0

Can you give us the error that appears?

0

Uhh I don't know much on CustomPhysicalProperties, but i reccomend that you just insert a body velocity and set the velocity it will work just as fine if not better

0

It's saying CustomPhysicalProperties isn't a valid member of bullet.