Top-Down Arcade Game Physics Not Working Properly

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.

Starblastarena.rbxl (29.0 KB)

Here is a link to the wiki tutorial

Thank you for the help in advanced, this would provide an excellent base for the game I want to build.

1 Like

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.

2 Likes

Looks like you haven’t created the leaderstats.

1 Like

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?

1 Like

Hold up there are a bunch of issues, trying to fix them. Also it seems your Move event is fired when the player clicks.

1 Like

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.

1 Like

Yeah you should learn things slowly. How much do you know?

1 Like

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.

Hmm, yeah you should watch a YT tutorial series by Wrathsong. https://www.youtube.com/playlist?list=PLatbVFCcsDB_9HsRyfmW17ToFiWydTeak

If you need any help with anything, feel free to message me! :smile:

3 Likes

Thanks I’ll check it out, I’ve got pretty strong knowledge of basics but the later videos definitely appear useful.

1 Like