Why are my projectiles the wrong orientation

I’m making a gun system, but the projectiles orientation are the wrong way.

Its hard to explain so here’s the game link:
https://www.roblox.com/games/6927193723/Gun-system

How do I fix this?

Please play the game first to know what the problem is before you reply.

So what I did with my tazer/gun was this.

GunPart.CFrame = CFrame.lookAt(WhereYouWantBulletToStartAt, PartToHit.Position)

I assume you don’t use raycasting, so this is an alternative

GunPart.CFrame = CFrame.lookAt(WhereYouWantBulletToStartAt, MouseHitp) --Send over Mouse.Hit.p for mousehitp

I’m handling the bullet in a server script, so mouse.Hit.p doesnt work.

you pass the mouse.Hit in the remote.

I assume you’re using a remote event for your script, because there’s no way you would able to check if the mouse was being pressed server side.
Send over another variable mouse.hit.p through the remote event, and use that.

I’m already doing that.

so i should just do:
GunPart.CFrame = CFrame.lookAt(WhereYouWantBulletToStartAt, Mouse) ?

If the Mouse variable is Mouse.hit.p, that is correct.

GunPart is where the bullet starts, or is referring to the projectile?

yeah. the gun or the barrel part

I get this error:

Players.UnboundTime.Backpack.Gun.Shoot:44: invalid argument #1 to 'lookAt' (Vector3 expected, got Instance)

you dont give the function your mouse. you do Mouse.Hit.p

In the server script you do mouse, not mouse.Hit.p

Ah, make it part.position, not the part.

It was arguement #1, not #2. He’s good.

I did this and it still doesnt work:

Bullet.CFrame = CFrame.lookAt(BulletSpawn.Position, mouse)

did you give that as a arguement to the remote or not?

Can you print Mouse? And I’m gonna ask for the sake of asking, are you sending

Mouse.Hit.p

as Mouse.

In my local script, I’m sending mouse.Hit.p through the remote, and receiving it as “mouse” on the server side.

If you would send the script (And local script) over, it’d be greatly appreciated, and it would allow me to understand and assist you better.

if you unlock your game then we can copy it and look at the code
https://www.roblox.com/games/6927193723/Gun-system#