I have made a basic gun and so far, i can spawn a little bullet of random color, but no matter what i do, I cannot make this bullet have any velocity to it. I have tried looking at many different guides and tutorials to no success, much help is appreciated. Here is the script:
local Tool = script.Parent
local debounce = false
Tool.Equipped:connect(function(Mouse)
Mouse.Button1Down:connect(function()
print("Firing")
local bullet = Instance.new("Part")
bullet.Size = Vector3.new(0.10,0.2,0.2)
bullet.BrickColor = BrickColor:random()
bullet.Position = Tool.Barrel.Position
bullet.Parent = game.Workspace
end)
end)

2 comments
just do bullet.Velocity = Vector3.new(putSomethingHere)
Thank you sir, I have looked at so many guides and i think i was getting confused with velocity and mouse direction, mouse cframe and all that. After a week of working on this, my gun finally works so I thank you so much for sending me this. :P