Why doesn't this work? I don't know what I did wrong but the bullet doesn't move at all. What it should do it fly to where it's facing...
local force = Instance.new("BodyForce", bullet)
force.force = (Vector3.new(200, 200, 200) * bullet.CFrame.lookVector)
Full script:
local function firegun(spawncframe, timeuntildestroy)
local bullet = Instance.new("Part")
bullet.Name = "Bullet"
bullet.Anchored = false
bullet.CanCollide = false
bullet.Size = Vector3.new(0.5,0.5,1.5)
local mesh = Instance.new("SpecialMesh", bullet)
mesh.MeshType = Enum.MeshType.Sphere
bullet.CFrame = spawncframe
bullet.Parent = game.Workspace
local antigrav = Instance.new("BodyForce", bullet)
antigrav.force = (Vector3.new(0, 196.2, 0) * bullet:GetMass())
local force = Instance.new("BodyForce", bullet)
force.force = (Vector3.new(200, 200, 200) * bullet.CFrame.lookVector)
game.Debris:AddItem(bullet, timeuntildestroy)
end
Also.. "antigrav" does work... So I don't really know at all why "force" isn't working..
