i already am using ray casting to do damage i just need to show the bullet the script i am thinking of goes kind of like this:
script.Parent.Parent.Equipped(function()
script.Parent.Parent:Equipped(function()
local bullet = game.ServerStorage.Bullet:Clone()
bullet.Parent = script.Parent.Parent
bullet.Position = script.Parent.Parent.Barrel.Position
end)
end)
after this i dont know how to make it move in the direction where the mouse is pointed plz help

2 comments
I also sent a question about a gun working in studio, but when I publish it, it is in the backpack and in his hand, but does not fire. I can share my code on the bullet that goes out the barrel. Does your code work for the ray tracing when you publish and play it? I will also send a roblox friend invite
every thing works here is the gun! https://www.roblox.com/games/5137128429/My-First-Gun?refPageId=6b5de2ba-9224-4e6f-8f6b-8082daa05175