this is the script function ChangeText(Text) local Players = game.Players:GetPlayers() for i = 1, #Players do Players[i].PlayerGui.Main.Time.Text = Text end end
further in the script i am using lines like ChangeText("peanutbutterjelly")
i'm making a minigame so i have a text label called time that changes when the function ChangeText is called but im getting that error that messes my script up.