How do I display a leaderboard value to my Overhead GUI and make it visible to every player

So I made this Local Script under the Overhead GUI TextLabel but when the Point update I can only see how many points that I have in the TextLabel but other players see it as 0 and same as me I can’t see the other players points while the player’s points are not 0 but I see it as 0. How do I fix this?

Here is the photo of the issue;


image

Here is the LocalScript;

local myValue = game.Players.LocalPlayer:WaitForChild('leaderstats'):WaitForChild('Points')

local value = script.Parent

myValue:GetPropertyChangedSignal('Value'):Connect(function()

value.Text = myValue.Value

end)

Problem is that it’s a local script meaning it runs only on your computer so only you can see it.
What you can do is make a RemoteEvent then fire it whenever the value (myValue) changes, then on the server script update the overhead gui.

Im not sure if this could work, but you can use the Changed event too

besides that, you should try using a event and pass information to the server
local script:

local event = game.ReplicatedStorage:WaitForChild("RemoteEvent")

myValue.Changed:Connect(function()
    event:FireServer(value,MyValue)
end)

ServerScript:

local event = game.ReplicatedStorage:WaitForChild("RemoteEvent")

event.OnServerEvent:Connect(function(plr,value,MyValue)
     value.Text = MyValue
end)

(dont copy this since this isnt directly from Roblox Studio)

Where do I put this local script at

local event = game.ReplicatedStorage:WaitForChild("RemoteEvent")

myValue.Changed:Connect(function()
    event:FireServer(value,MyValue)
end)

Both add to ServerScriptService?

Oh wait so

local event = game.ReplicatedStorage:WaitForChild("RemoteEvent")

myValue.Changed:Connect(function()
    event:FireServer(value,MyValue)
end)

goes into the text

and the other script goes into ServerScriptService?