It returns no errors so idk

Server Script

require(script.Kick)
local int = require(script.Intermission)

int.start(31)

Module Script

local intermission = {}
local players = 1
local Events = game.ReplicatedStorage.Events
local GameT = require(script.Game)
local int = game.ReplicatedStorage.GameValues.IntStart

game.Players.PlayerAdded:Connect(function(player)
	players = players + 1
	return players
end)

game.Players.PlayerRemoving:Connect(function(player)
	players = players + 1
	return players
end)

function intermission.Check()
	while true do
		if players <= 1 then
			print("PlaceHolder")
		end
	end
end

function intermission.hide()
	repeat
		wait()
	until game.ReplicatedStorage.GameValues.IntTime.Value == 5
	for i,v in pairs(game.Players:GetChildren()) do
		v.PlayerGui.SelectMaps.Frame.Visible = false
	end
end

function intermission.start(tim)
	print(tim)
	repeat
		tim = tim - 1
		game.ReplicatedStorage.GameValues.IntTime.Value = tim
		wait(1)
	until tim == 0
	Events.Main:FireAllClients("GameStart")
	GameT.Start(31)
end

return intermission

The Int Value is not updating

8 comments

0

line 13 of the module should be subtracting, not adding

0

Ok but thats not the probelm...

0

Also why are your event listeners returning values. That's not going to work

0

Roblox doesn't expect anything back from your callback functions.

0

I don't get it

0

Remove lines 9 and 14. Maybe that might do the trick.

0

Thoses functions are not even running and I have already fixed it was line 5 I needed to put it inside the function

0

I mean line 4