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

How can I add a way for players to receive leaderstats currency? [closed]

Asked by 7 years ago
Edited 7 years ago

I made a mission gui correlating with 2 bricks. When you touch one brick the mission starts and it says what the mission is on the bottom left of the gui. Once you touch another brick it says [Complete]. The only problem is; I want that once you complete the mission the players awarded with Neutros(the leaderstats name)/ Scripts:

START MISSIONS SCRIPT:

script.Parent.Touched:connect(function(k)
    if k and k.Parent.Humanoid then
        game.Players[k.Parent.Name].Quest.Value = script.quest.Value
        wait(3)
        end
end)


FINISH MISSION SCRIPT:

script.Parent.Touched:connect(function(k)
    if k and k.Parent.Humanoid and game.Players[k.Parent.Name].Quest.Value == "go touch the other brik" then
        game.Players[k.Parent.Name].Quest.Value = "[Completed]"
        wait(1.1)
        end
end)

Closed as Not Constructive by hiimgoodpack and PyccknnXakep

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?