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