For a long time I can’t solve the problem with displaying text in the game, at first everything was OK, but after updating the roblox or something else, the text in the game broke, it is displayed incorrectly.
This problem concerns all text in the game except the interface.
The only way to restore the original appearance of the text, delete the object and roll back, duplicate the object, also change any text symbol or reload the TextScaled parameter.
But after restarting Roblox Studio or Roblox, the text is distorted again. Each player’s text breaks in different places.
FontFace: Oswald
The only way to solve the problem is to find all TextLabel in the workspace and disable TextScaled for a second, then enable it again using a script. The problem is that all TextLabels are in different models under different names and there are more than a hundred of them for sure.
Placing the labels all under different models was a huge mistake, they should’ve already been parented to the board. This would’ve made it easier to rearrange the your ui to fit properly.
local Button = workspace.TESTBUTTON
local Lines = workspace.TestMonitors.Tr.Monitor.Lines:GetChildren()
Button.ClickDetector.MouseClick:Connect(function()
for _, Object in pairs(Lines) do
Object.SurfaceGui.TextLabel.TextScaled = false
end
wait(2)
for _, Object in pairs(Lines) do
Object.SurfaceGui.TextLabel.TextScaled = true
end
end)
This function helped me.
Now it is necessary to make several similar groups with their own cycles and the problem is solved!
local Button = workspace.TESTBUTTON
local descendants = workspace:GetDescendants()
Button.ClickDetector.MouseClick:Connect(function()
for _, descendant in pairs(descendants) do
if descendant:IsA("TextLabel") then
descendant.TextScaled = false
end
wait(2)
if descendant:IsA("TextLabel") then
descendant.TextScaled = true
end
end
end)