My problem is, that my leaderboard sometimes displays text bigger than it should be.
Example:
This is how it looks like in Studio:
TextScaled is off on all Labels.
This is the Script for it. (RichText used)
coroutine.wrap(function()
local xyz = true
while xyz do
xyz = false
local GUI = game:GetService("Workspace"):WaitForChild("MainLBD"):WaitForChild("lbdGUI")
local Players = game:GetService("Players")
local pageSize = 10
local pages = leaderstore:GetSortedAsync(false, pageSize)
local topTen = pages:GetCurrentPage()
for rank, data in ipairs(topTen) do
if data ~= nil then
local id = data.key
local times = data.value
local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size48x48
local content, isReady = Players:GetUserThumbnailAsync(string.gsub(id, "%D", ""), thumbType, thumbSize)
GUI["p"..tostring(rank)].plrname.Text = "<font size=\"200\">@"..Players:GetNameFromUserIdAsync(string.gsub(id, "%D", "")).."</font>"
GUI["p"..tostring(rank)].time.Text = "<font size=\"200\">"..tostring(data.value).."</font>"
if isReady then
GUI["p"..tostring(rank)].pfp.Image = content
end
end
end
task.wait(120)
xyz = true
end
end)()
Help is greatly appreciated!