First, sorry for the weird title, it wont let me type there anything normal. Anyways, as the title says, thats my problem, I created script which worked until now. No idea how to fix it, I tried to check it with the script analysis thingy you can enable in view tab but no luck, here is the script.

local Timer = game.Players.LocalPlayer.PlayerGui.TimerGui.Timer  -- Countdown location (Message, TextLabel, Button) DONT PUT .Text here!
local Messages = game.Players.LocalPlayer.PlayerGui.Msg.Msgs -- Messages location (Map hidden etc.)
value = 181 -- Lenght of one round (Number must be +1 (If you want 20 second long round, put there 21))
defaultValue = value -- Dont touch this 
inter = 16 -- Lenght of intermission (Number must be +1 (If you want 15 second intermission, put there 16))
defaultInter = inter -- Dont touch this
loadTime = 4 -- Lenght of time to load map (Number must be +1 (If you want 3 second long load time, put here 4))
defaultLoad = loadTime -- Dont touch this


---- DO NOT EDIT ZONE (Feel free to edit it if you have some scripting skills) ----

while true do
	repeat
		wait(1)
		loadTime = loadTime -1
		Timer.Text = loadTime
	until loadTime == 0
	loadTime = defaultLoad
	game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(0, 40, 0)
	game.Lighting.Happy_Home.Parent = game.Workspace
	repeat 
		wait(1)
		value = value -1
		Timer.Text = value
	until value == 0
	value = defaultValue
	game.Workspace.Happy_Home.Parent = game.Lighting
	game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(0.59, 13.218, -203.3)
	Messages.Text = "Map happy home hidden!"
	wait(1)
	Messages.Text = " "
	wait(0.5)
	repeat
		wait(1)
		inter = inter -1
		Timer.Text = inter
	until inter == 0
	inter = defaultInter
	repeat
		wait(1)
		loadTime = loadTime -1
		Timer.Text = loadTime
	until loadTime == 0
	loadTime = defaultLoad
	game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(0, 40, 0)
	game.Lighting.Forest.Parent = game.Workspace
	repeat 
		wait(1)
		value = value -1
		Timer.Text = value
	until value == 0
	value = defaultValue
	game.Workspace.Forest.Parent = game.Lighting
	game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(0.59, 13.218, -203.3)
	Messages.Text = "Map happy home hidden!"
	wait(1)
	Messages.Text = " "
	wait(0.5)
	repeat
		wait(1)
		inter = inter -1
		Timer.Text = inter
	until inter == 0
	inter = defaultInter
end

-------- ITZBLAZIK --------

5 comments

0

Explain your problem more clearly.

0

The intermission, round and load time doesnt show up in the gui, but its set exactly to it, and I am pretty sure that there isnt problem with accessing the gui

1

Using script analysis is not the right way to find what is wrong. Check the output.

0

Also, use a for loop.

0

Try using WaitForChild to get objects. They may not exist at the time the script runs, so you will have to wait for them. (e.g, game.Players.LocalPlayer.PlayerGui:WaitForChild("Frame"):WaitForChild("Message"))