If you could build a train that could travel as fast as a bullet..................

If you could build a train that could travel as fast as a bullet, what would happen if you fired a gun from a window of a compartement in the train???

From the perspective of someone on the train who’s firing the gun, nothing special.

From the perspective of someone on the ground, it all depends on which direction you fire the gun. Fire it against the direction of travel, and the bullet would appear to drop straight to the ground from the barrel of the gun.

Ok, im stupid, why would it do that? The wind?

A bullet travels nowhere near the speed of light, so why would the two speeds not add up on top of each other?

They do add up. One’s positive, one’s negative, so the sum is zero.

Nothing mysterious here:
A bullet fired in the direction of travel by a passenger would double its’ velocity with respect to the ground.
(eg 4000 fps + 4000 fps = 8000 fps).
A bullet fired by a passenger against the direction of travel would have a velocity of 0 with respect to the ground (4000 fps - 4000 fps = 0 fps).
In both cases the bullet would move away from the passenger at 4000 fps.

If a person on the ground fired a bullet in the direction of the trains travel it would appear to hover motionless outside the trains side window.

Ahh, My mistake, I took against the direction of travel as similar as “against the wind” or in the direction one is traveling. That was an error on my part.

Slaps himself in the forehead