Whats wrong with this script

game:BindToClose(function()
	local ServerShutdown = Instance.new("Configuration")
	ServerShutdown.Name = "ServerShutdown"
	ServerShutdown.Parent = ServerStorage

	
		task.wait(4)
		end

I get this error message image

game:BindToClose(function()
	local ServerShutdown = Instance.new("Configuration")
	ServerShutdown.Name = "ServerShutdown"
	ServerShutdown.Parent = ServerStorage
	task.wait(4)
end)

Missing bracket at end.

2 Likes

You forgot a closing parenthesis after the end, because of the lambda function.

2 Likes