My code
while wait() do local player = game.Players.LocalPlayer script.Parent.Text = ""..player:WaitForChild("leaderstats"):FindFirstChild("Points").Value end
I want to make it a server script and make it so it can show every players stats on a gui but I cant make it a server script.

2 comments
remote events
https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events