I am currently making a score GUI, and I need it to pull information from the leaderboard and change the text in the GUI. Here are the scripts I am using:
Leaderboard script in the workspace:
local statList = {
"Score";
}
game:GetService("Players").PlayerAdded:connect(function(playerObject)
local leaderStats = Instance.new("Model", playerObject)
leaderStats.Name = "leaderstats"
for index, value in pairs(statList) do
local intValue = Instance.new("IntValue", leaderStats)
intValue.Name = value
end
end)
Script in the GUI:
while true do
script.Parent.Score.Frame.Text = Workspace.Leaderstats.Score.Value
end

3 comments
It is a textbox.
So wait, Frame is the name of the Textbox? Or is it supposed to be Frame.TextBox.Text?
Frame.TextBox.Text