Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make objectives for Players in your game? [closed]

Asked by 5 years ago

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.

0
Sorry if you think this is a bad question but i don't know how to explain it differently. DFROBUXX 28 — 5y
0
It's just quite vague and we can't help line by line with something so general. See my answer. Should give you a general idea on how to do it. royaltoe 5144 — 5y

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?

1 answer

Log in to vote
0
Answered by
royaltoe 5144 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

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.

0
This is very helpful thank you, i will try this and i will let you know if it works. DFROBUXX 28 — 5y
0
I don't really get the Remote events luccy would you mind help me with that please . DFROBUXX 28 — 5y
0
Do you know how to make a part do something when it's touched? royaltoe 5144 — 5y
0
no DFROBUXX 28 — 5y
View all comments (2 more)
0
I'd look into the youtube channel I sent you then. He has a bunch of tutorial videos on scripting and explains how to do that here: https://www.youtube.com/watch?v=oAnWzxol4e8, but if you find yourself confused in that video, watch his earlier videos. He eventually goes on to talk about remote events and you should have a good idea how to do it by then. You need to remember to have patience though royaltoe 5144 — 5y
0
Ok thank you DFROBUXX 28 — 5y
Ad