so i have this LOCAL script

local player = game.Players.LocalPlayer
local intermission = 11
local roundTime = 11
local startText = script.Parent

while wait(1) do
	if intermission > 0 then
		if intermission > 10 then
			startText.Text = "wait"
			player.character.LowerTorso.CFrame = CFrame.new(game.Workspace.NotMapSpawn.Position)
		end
		startText.Text = "starts in " .. intermission
		intermission -= 1
		print("starts in " .. intermission)
	else
		if roundTime > 10 then
			startText.Text = "wait"
			player.character.LowerTorso.CFrame = CFrame.new(game.Workspace.MapSpawn.Position)
		else
			startText.Text = "ends in " .. roundTime
		end
		roundTime -= 1
		print("ends in " .. roundTime)
		if roundTime < 0 then
			intermission = 11
			startText.Text = "nice"
			wait(3)
		end
	end
end

but this is only local and I don't know how to get LocalPlayer and how to change the the gui text

5 comments

0

You should not program a round-based game on the Client.

0

i know i am trying to understand how servers work

0

All the guides and API documentation on that site will be the easiest and fastest way to learn how it all works.

0

well i know how it works but i don't know how to script it just sayin