Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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)

1 comment

0

Thanks man!!

1 answer

✓ Accepted answer

At line 17 in that code above, change V.maxfore to V.maxForce.

This discussion is preserved as it was. New answers, comments, and votes are closed.