Hey there I’m making an FPS shooter-type game and I’m currently scripting a turret that kills the other who tries to enter the other team spawn and I’m not quite sure how to script a realistic RPG that will fire and explode once it hits the target.
Make a radius that it can detect players, check their team, make the part on the turret that’s supposed to look at the player, fire the rocket forward from the barrel, when it touches something, create an explosion from the position of the rocket, if a person is caught in the explosion then damage them.
Like @zhenjie2003Alt said. You would have to make a radius to where the turrets can see players. As well as making an 2 object value (or CFrame Value) and naming it killer and team. Put the “team value” inside the player, and the “killer value” inside the enemy (or opponent)