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

How do you make objectives for Players in your game?

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.

3 comments

0

Sorry if you think this is a bad question but i don't know how to explain it differently.

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.

1 answer

✓ Accepted answer

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.

6 comments

0

This is very helpful thank you, i will try this and i will let you know if it works.

0

I don't really get the Remote events luccy would you mind help me with that please .

0

Do you know how to make a part do something when it's touched?

0

no

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

0

Ok thank you

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