How to Make a Quest in a game Like Piggy

If you remember the mr_Stitchy quest in piggy i wanna do something like that but i dont know how to could someone give me a tutorial on it

Do you want ot make it quest systems with NPC’s or just with Gui;s/
?

with npcs John_15051 thats whow i want it done

Ok. So basically, you create a table for all the quests you are going to have. Create a int value of how much quests that player has complete. These need datastore and I suppose you already know them. If not, you can tell me and I will give you a tutorial on that. Whenever the player completes a quest, add 1 to his int value and give him the next quest. You can create a gui and make it visible by pressing a key on a npc. If you need more examples, you can use this
example.rbxl (26.7 KB)

2 Likes

i dont know about data stores yet
and also where would i put the int value replicated storage???

I’d imagine that the Int value is stored in something specific to each player; for example the Player’s instance, depends if your game is multi or singleplayer (from my point of view).

Put the int value inside the player instance like this:

game.Players.PlayerAdded:Connect(function(player)
    local intval = Instance.new("Int Value")
    intval.Name = "QuestsCompleted"
    intval.Parent = player
end)

When a player complete a quest, do this:

player.QuestsCompleted += 1

You can create a module with different things like items required, reward, etc.

For the datastore, you can read this article