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

How do i make a leaderstats connect in two games in one? [closed]

Asked by 4 years ago

So Hi! I have game and has you know there is a game explorer and i have two games in there connected how do i make it so it reacts in both servers example :

`~~~~~~~~~~~~~~~~~

function onPlayerEntered(newPlayer)
    wait(.5)
    local stats = Instance.new("IntValue")
    stats.Name = "leaderstats"

    local score = Instance.new("IntValue")

    score.Name = "Money"
    score.Value = 0

    score.Parent = stats    
    stats.Parent = newPlayer

end

game.Players.ChildAdded:connect(onPlayerEntered)

~~~~~~~~~~~~~~~~~`

Like how do i make a leaderstats that are like connected?

0
U dont have to connect them if the place is in the same universe then if you use the same datastore it will have the same stats when u load it IcyMizu 122 — 4y
0
Could you show me what the script with the script i put above UnrealSaltyYouTube -12 — 4y

Closed as Not Constructive by Ziffixture

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?