Being disconnected from game [Error code 275]

So I was making a timer for your time spent in a level, and when I finally got it the way I wanted, I went to test it. All went well, until I re-entered the level and the game kicked me with this message:
image

This happens 100% of the time when entering any level after leaving one.
Everything was working before I added the timer. All I did was remove the timer script and add a fresh one every time a level was started. A global function is fired that creates a script for keeping track of each second. This all happened today, at 8:23 PM CST

It happens here (but it may be fixed by the time you read this)

2 Likes

I fixed it by resetting the timer instead of making a new script, but I’m still curious about this strange problem.

can you post the contents of the separate timer script (or send it to me in a DM)? If you put the timer script in a totally new place (just a baseplate) does it also cause 275? If the timer script ended up doing a lot of work as the server was starting up, it might have made our system think that the server is not responsive, causing the server to be closed.

Here’s the timer script:

_G.Timer = 0

while script.Disabled == false do
	_G.Timer = _G.Timer + 1
	local first = math.floor(_G.Timer/1440)
	local second = math.floor(_G.Timer/24) - (60 * first)
	local third = _G.Timer - (math.floor(_G.Timer/24) * 24)
	if first < 10 then
		first = "0" .. first
	end
	if second < 10 then
		second = "0" .. second
	end
	if third < 10 then
		third = "0" .. third
	end
	if tonumber(first) < 100 then
		script.Parent.Text = first .. ":" .. second .. "." .. third
	else
		script.Parent.Text = math.random(10000,99999) .. math.random(10000,99999) .. math.random(10000,99999) .. math.random(10000,99999) .. math.random(10000,99999) .. math.random(10000,99999) .. math.random(10000,99999) .. math.random(10000,99999) .. math.random(10000,99999) .. math.random(10000,99999) .. math.random(10000,99999) .. math.random(10000,99999) .. math.random(10000,99999) .. math.random(10000,99999) .. math.random(10000,99999)
	end
	wait(1/24)
end

This script was cloned each time I wanted to start it. (I worked around this bug, hence the _G everywhere)
Any old timers were then disabled and removed.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.