When I play the game the text doesn't change. Why?
playerCount = 2 -- how many players needed to start the game menuText = script.Parent.Text gameName = "yolopp" --the name of the game while true do if game.Players.NumPlayers <= playerCount then menuText = "Waiting for players..." wait(.8) menuText = "Waiting for players.." wait(.8) menuText = "Waiting for players..." elseif game.Players.NumPlayers >= playerCount then menuText = "There are enough players to begin the game!" wait(2) menuText = "Welcome to "gameName"." wait(2) menuText = "The theme for this round will be freestyle!" wait(2) menuText = "Teleporting players.." wait(.8) menuText = "Teleporting players..." wait(.8) menuText = "Teleporting players.." wait(.8) end end
First You Need To Do Something Like This Before The Script:
local menuText = game.StarterGui.Frame.TextLabel
Do This On The First Line Of Code!