Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone help with CustomPhysicalProperties?

Asked by 7 years ago

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    
0
Can you give us the error that appears? antonio6643 426 — 7y
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 DevDeadly3652 0 — 7y
0
It's saying CustomPhysicalProperties isn't a valid member of bullet. TheRings0fSaturn 28 — 7y

Answer this question