So, I’ve been working on a shotgun for my game. The way it currently works is that it gets 8 “destinations” for each pellet, then loops through the Raycast calculations 8 times, each time with a different “destination”. This code works… except when a round starts.
When the round starts, the game loads in the map from serverStorage, sets up the location of certain objects, then kills every player and begins the round. During the round, the shotgun only repeats the Raycast loop once, instead of 8 times.
However, when the round ends and everything despawns, it starts working again! Also, if you shoot at the sky from inside the map, it does work. I’m not even getting any error messages; what gives?
I've attached the shotgunServerScript and the playerScoreboard, which controls the round system. I'll add anything else that's needed.
** You are now Level 2! **