#Shotgun doesn't make all of it's pellets, but only when shooting inside the loaded map?

1 messages · Page 1 of 1 (latest)

subtle smelt
#

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... uh, might need to "view whole file" for both scripts
oops

subtle smelt
#

NOPE

quartz cometBOT
#

studio** You are now Level 2! **studio

subtle smelt
#

NEVER MIND

#

I FIXED IT

#

it's because i grouped my map into models...
so it thinks every piece of map geometry is a humanoid