Hello, i am working on a roblox game with objectives but i do not know how to make them. Does anyone know how to make objectives? Please tell me.
Don't get too caught up in how to script it if you can't think of to script the objectives. Think about what you want to do and put it into code.
For objectives, you want to have a list of objectives the player has to do. To do that, make a gui that the player can see containing objectives.
Once you have that, you want to make sure the objectives list gets updated every time one of the goals are completed.
So ask yourself, how do you know when the player has reached an objective? You want to reward the player when you complete an objective, and for the game to update the objective gui.
If the objective were to touching a brick, we'd need to check if the player is touching the brick, and tell the player that they completed the objective. Code wise, you'd have to check if the player was touching the brick on the server using the brick's touched event, send a remote event to the player which the gui catches and calls a function to update the players gui. Once the gui is updated (after you sent the event), you can reward the player in the scripy where you check if the player is touching the part.
article about events [https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events] tutoria on youtubel[https://www.youtube.com/watch?v=C0qQ4lDa3t0]
Let me know if you need help with remote events or anything else specifically.
Closed as Not Constructive by Elixcore, EpicMetatableMoment, and BlueTaslem
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?