Hi. I have this issue with my custom chat GUI and when I try to get the text size for a message it returns 0,0. When i play the game on a local server and client it all works fine, but on the online game it just returns 0,0
local TextService = game:GetService("TextService")
local x = TextService:GetTextSize(name.Text, name.TextSize, name.Font, name.Parent.AbsoluteSize).X
name.Size = UDim2.new(0,x,0,15)
name being the newly created TextLabel, with all of its properties (except the size) set before setting the X variable.
I have also tried replacing variables like name.TextSize and name.Font to their actual values, but it still doesnt work
I dont understand why I have this issue and I hope someone could help me :)
EDIT: The script is in ServerScriptService with experimental mode off and FE on

2 comments
FilteringEnabled/Experimental mode? Script on the server or localscript in the gui/etc? That snippet of code should execute flawlessly so long as everything is set.
Its on a ServerScript in ServerScriptService and experimental mode off FilteringEnabled on