Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Struggles with creating a basic fps system?

Hello, i'm struggeling with making a fps system that's like you have A Class and Loadout System

The Class gives you only class item in you're backpack

The Loadout needs to be example

PrimaryW > (Example) Mp5 And that when you press "Deploy" you will be spawn with the class items and the Primary and Secondary item and what i was tryna do to is if you can mounth attachments (from the gui)

I tough this is possible with string values that for example you press(button) of mp5(gun) that it wil change the string values to Mp5 and for example you put a suppresor that it will change the suppresor string values to (TestSupressor) and that when you press "Deploy" that the string will load the items from ReplicatedStorage or ServerStorage and place them in the localplayer inventory!

1 answer

✓ Accepted answer

I do believe this is in fact a bit off-topic but I'll do my best to help you.

As for what to do when creating a class system like this, I do suggest placing the tools in ServerStorage, as its better, especially if you want to have secret weapons that you dont want leaked by some exploiter poking around in ReplicatedStorage.

As for getting the classes to actual have their weapons, I suggest a remote in ReplicatedStorage, called something like "ClassChoice". There, a serverscript should be binded, and should give the player their selected weapon each time they spawn, and change the selected weapon they give when the remote is fired by that player.

On the client, there should be some gui, it doesnt necessarily HAVE to be pretty, that will fire the remote when clicking certain gui elements.

I hope this helps with what direction you need to take this in!

This discussion is preserved as it was. New answers, comments, and votes are closed.