ok so the bullets in my game spawn on the floor, where i click, or a ways away form the part named "Barrel" please help my game relays on those guns hevaly
script.Parent.Shoot.OnServerEvent:Connect(function(player,LookAt)
local FlukyGun = player.Backpack:FindFirstChild("WizGun") or player.Character:FindFirstChild("WizGun")
local cframe = FlukyGun.Barrel.CFrame
local bullet = game.ReplicatedStorage.Lazer:Clone()
bullet.Parent = script.Parent
bullet.CFrame = cframe
bullet.Velocity = LookAt*350
local fly = Instance.new("BodyForce",bullet)
fly.Force = Vector3.new(0,bullet:GetMass()*180,0)
game.Debris:AddItem(bullet,1)
wait(2)
bullet:remove()
end)
and
script.Parent.Shoot.OnServerEvent:Connect(function(player,LookAt)
local FlukyGun = player.Backpack:FindFirstChild("WizGun") or player.Character:FindFirstChild("WizGun")
local cframe = FlukyGun.Barrel.CFrame
local bullet = game.ReplicatedStorage.Lazer:Clone()
bullet.Parent = script.Parent
bullet.CFrame = cframe
bullet.Velocity = LookAt*350
local fly = Instance.new("BodyForce",bullet)
fly.Force = Vector3.new(0,bullet:GetMass()*180,0)
game.Debris:AddItem(bullet,1)
wait(2)
bullet:remove()
end)
the only other things besides those are parts, a remote event (named shoot) and qPerfectionWeld.

2 comments
it spawns on the part now but now its even more unusable (the bullets spawn but fall to the floor and fly up) ill explain original problem more. the bullets spawn either 2ish studs from the barrel part or on the floor. they fly fine but the spawning is funky! ill continue tinkering your script and the old one
update: i swaped your Velocity part with the old one and its working fine enough for now. if the game gets more populer ill look into fixing it more! but thanks. ill put some creds in the discription