We create daily quests who doesn't want to, don't come in

hi guys, help me create daily quests, just don’t give me a script, but help me think together and write a script, I’m not saying teach me how to write a script, I could look at YouTube how to do daily tasks, but there is not what I need, I hope for your understanding

I have everything, only it remains to make a script and that’s it

it’s like a lesson you’re a teacher I’m a student you just prompt I write I have not seen this in the dev forum let’s do it together

@mc3334 I hope you are not like everyone else, they will say go learn basic knowledge, I hope you will help write

When you’re looking to make any script, try breaking it down into a list of steps. Once you have tried that, you can check and compare to the one I made below. Next, you need to be able code out each step. Do your own research here and you can ask more specific questions on the forum if you get stuck on a specific step.

Step 1: Figure out how to run code every 24 hours
OS Documentation
Datastore Documentation

Step 2: Once we figure out how to run code every 24 hours, we need actual code to run. We need a way to store all of our quests- I would suggest a table in a module. Each entry in this array would represent a quest. Each quest in the main array would have its own entries of data which pertain to that specific quest. (These are up to you to come up with). This step is mainly just setting up a data table and being able to store all of this data properly

Step 3: We need to pick a random quest from our data table, each time our function from step 1 is allowed to run. Check out the Random object. There are probably plenty of topics already on getting a random entry from an array, you can research more about this independently.

Step 4a: Once we have picked a random quest from the array in step 3, we need to do 2 things. First, we need to display this quest to the user through some sort of GUI. This should be straight forward, and can be done in many ways.

4b):Second, we need to push this quest to the datastore so if the user joins within the next 24h, we can show them the same quest. Again, look into Datastore Documentation. You will want to save the quest index from the table, and the time that this quest was generated (so we know when to generate a new one).

5: Test and ask more questions

I hope this is is helpful as framework. If you’re looking for anything more specific you will have to ask more specific questions.

1 Like

I have a game similar to a super power fighting simulator, like there you need to pump strength and endurance and psyche, and in YouTube the tutorials are completely different

bro I’m not saying there’s help or write or something else I’m asking for help in creating a script you say I’m writing you don’t give me a script I’m kind of studying lua like at school you give me a task I solve it

you don’t mind? If you have a lot of time, then come on

Follow the steps I gave you, do independent research, ask me specific questions. If those steps are really confusing you, then you may need to practice syntax or just the language more before you move onto something that’s this complicated.

1 Like

I have everything, only it remains to make a script and that’s it

So essentially you have nothing lmao.

Stop being so entitled, @mc3334 literally tried to help you and quite in depth actually.