Hello fellow developers!
Yesterday I publicized a new game: Moon 2060
Then one of my friends played and pointed out Laser Gun doesn’t give damage to other players while Energy Gun works perfectly.
I created Energy Gun first then copied and modified the local script for Laser Gun.
For visuals, I use beam for Laser Gun while part for Energy Gun.
Here are the codes:
Energy Gun Local Script
Laser Gun Local Script
Server Script for Weapon System
I changed the area surrounded by red lines to change the visuals from part to beam.
I don’t know why Laser Gun never give damage.
I appreciate if someone help me.