Why is the part being generated in the wrong spot

What’s up

I did Instance.new()

Which will generate a part when the player clicks the mouse while the gun is equipped of course

I’m following a tutorial created by CovertCode about how to make a gun since I wanted to add visible bullets to the gun

I followed all the math but it’s not working, the part is being generated in the wrong spot

The script generating the part is a ServerScript inside ServerScriptService.

The part is generated when a LocalScript fires a RemoteEvent

Here’s the event which fires when the RemoteEvent is fired

What’s wrong with it?

1 Like

Right now the way it is coded looks like the bullet is created at the TargetLocation and facing the Handle.Position and then being moved to half the distance between the two. Is that where it is created? Where do you intend for the bullet to be created?

1 Like

You can look at the tutorial created by CovertCode to see what I’m trying to do, I just want to create the part which is the bullet but as I said it’s being generated in the wrong place

1 Like

It’s called “How to make a gun” or something like that

1 Like

Here’s the difference tho, “Handle” actually represents the position of a Muzzle Flash Part inside the gun, the gun does not need a handle because I did it in another way.

I should really change the name of that parameter, argument I forgot

1 Like

Fixed it, turns out I had to remove the Bullet.Shape = Enum.PartType.Cylinder

Bruh

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.