Text doesn't change with serverscript?

Depending where your script is, it’s probably best to do like
Script.Parent.Ui
Instead of game.Players.LocalPlayer