Can anyone tell me why this isn't working?(Its a Gun Firing Script)
Player = game.Players.LocalPlayer
Gun = script.Parent
mouse = Player:Getmouse()
function Shoot()
Bullet = Instance.new("Part", Workspace)
game.Debris:AddItem(Bullet,2)
FormFactor = 'Custom'
Bullet.Size = Vector3.new(0.2, 0.2, 2)
BrickColor = BrickColor.new('Really red')
Bullet.TopSurface= "Smooth"
Bullet.BottomSurface= "Smooth"
Bullet.CanCollide = false
Bullet.CFrame = Hole.Gun.CFrame
Bullet.CFrame = CFrame.new(Bullet,Position,Mouse.Hit.p)
V = Instance.new("BodyVelocity ", Bullet)
V.Velocity = Bulllet.CFrame.lookVector *90
V.maxfore = Vector3.new(math.huge,math.huge,math.huge)
end
Gun.Activated:connect(Shoot)