Im making a dual wielding gun tool, but I'm trying to figure out how to make it shoot at the same time. Can someone tell me? CODE:
local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit * 300)
local touch, position = workspace:FindPartOnRay(ray, game.Players.LocalPlayer.Character, false, true)
local trace = Instance.new("Part")
trace.Anchored = trace
trace.CanCollide = false
trace.Transparency = 0.5
trace.BrickColor = BrickColor.new("Black")
trace.Material = Enum.Material.SmoothPlastic
local distance = (tool.Handle.CFrame.p - position).magnitude
trace.Size = Vector3.new(0, 0, distance)
trace.CFrame = CFrame.new(tool.Handle.CFrame, position) * CFrame.new(0, 0, -distance / 2)
trace.Parent = workspace

3 comments
note that this code describes how it's going to shoot
What exactly are you having trouble with? To make it shoot twice you could just put this in a small for loop.
try for i = 1, 2, 1 do (Raycasting code here) end