How do i make a RTS Game

I need to know how do i make a RTS game in roblox.

I don’t really know how to script a RTS game but i need help with it.

Mention me if you know.

Thanks!

3 Likes

This should go in #help-and-feedback:game-design-support :wink:

3 Likes

There! changed the category for this topic.

1 Like

RTS, RTS. I was attracted to this thread because I myself am making an RTS right now on Roblox. I’m still in early stages of development(still making a single selection and orders system lol), but here’s what I can tell you:

There is no specific way to make an RTS. Every RTS has unique features to its theme, making each one unique and special in its own way. Just keep in mind that an RTS has to have these things to even be considered an RTS:

  1. The ability to select units and issue commands
  2. The ability to build buildings
  3. The ability to issue commands to these buildings
  4. The ability to attack

Those properties are the backbone of any RTS. Keep in mind that each of these topics are very complex, so in order to avoid hours of explanation, I’m going to try to keep this simple.

Selecting and issuing commands to units:
A ModuleScript containing selected units would be helpful. Then, when issuing an order, check that the correct key is pressed, and then if the unit can execute such action, send a message to the server. The server should check if the player actually owns the unit (exploiters), if they do, then put any additional checks that one might need (example: if your unit has enough energy to preform the action), then go ahead and handle it on the server. It is a bad practice to handle physics on the client (lag: ACTIVATE)

Building buildings:
This one is much simpler. Raycast, check, on the click, send a message to the server. Check for resources, valid location, and any additional stuff the building needs. Then (assuming you’re using a worker to build it like in Starcraft), go ahead and begin placing parts and tweening if need be.

Issue commands to the buildings:
Same thing as the units, just treat the building as a unit as well and you should be fine (make sure it can’t move though, last I checked buildings don’t have legs).

Attacking:
So, this is probably better handled on the server. Just check the distance between units, and if they are in range of an attack, go ahead and decrease their health

So, it obviously won’t be simple, so just be prepared for the challenge. However, I started creating an RTS with the goal of making a functional RTS people could enjoy on Roblox. And, I say the more the merrier!

NOTE: If you read this post and are like :neutral_face:, then you might want to consider learning more scripting before attempting a project of such size.

12 Likes

Okay, I have to learn more scripting before to create a RTS game :confused:

Well, That’s the only way, Right?

Yep. Like I said, RTSs are really complicated. Gotta learn some more coding before attempting something like this. Nothing wrong with dreaming big, and you can always make more simpler strategy games before something like this!

2 Likes

Learn like… Placement and Unit Pathfinding?

2 Likes

if u r making one ull at least need to make a troop placement system round framework, attacking defending handling health values,etc. i suggest u start with the round framework or whatever then go on step by step with the help of tutorials u will also need to know how to do datastores etc. and the gui handling too bro im tired j writting some of the stuff make sure u have the skills to make such a game

1 Like

What I mean is you could just make projects to improve your programming skills. Each game should have something you’ve never done before, in order to challenge yourself!

I lost the intrest but okay.

.

1 Like

Not gonna lie, developing a RTS game on roblox is hard but it’s even harder when your doing it solo and that is what I am currently doing. As a matter of fact, it is possible even with basic scripting skills. Good luck if you plan on working on it again!

3 Likes