Hi! I’ve wanted to make a top down shooter game for a while, and I even found a wiki tutorial to start off with. However, when I finished writing all of the code, it did not function properly at all. Here is a video of what the gameplay is supposed to look like.
Here is what my gameplay looks like:
As you can see, the projectiles do not launch properly. Furthermore, when the player dies, they lose all control of movement. Rather than posting the medley of scripts, I figured I’d give a place file because this is from a tutorial partially, meaning it can’t be stolen.
Line 10, ServerScriptService.PlayerShipHandler. You’re attempting to get the players mouse form a server script. Only the client can get that. It seems that breaks the entire script, including the movement.
I fixed the leaderstats, but I’m sort of confused on how I would fix the mouse issue. If I make the entire script a local script, it remove all server movement for this being a multiplayer game. In that case would I link the movement to serverscripts and fire them with remoteevents?
Okay, yeah this is definitely some bad code, I wrote the entire thing and then made another copying the code because I had no idea what was happening. I’m not the best when it comes to coding with different player models and using physics.
I’ve been scripting for a while on and off but just came back so my knowledge has gotten fairly worse. I have built solid gameplay loop systems and was able to make a basic setup with character customization, a full job system using timers. I have fairly solid knowledge on filteringenabled/Experimental Mode. Back when my coding slowed down I was working with data stores and trying to learn everything about tables and dictionaries so I could store player information. When it comes to trying to learn new things I’m always unsure of where to start to learn everything new.