Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to fix this gay error HTTP 410 (Gone) - Server - TwitchStreamChecker:21?

local StreamOnline = false

local StreamValue = Instance.new("BoolValue") StreamValue.Name = "StreamOnline"

local ViewerValue = Instance.new("IntValue") ViewerValue.Name = "Viewers" ViewerValue.Parent = StreamValue

local TitleValue = Instance.new("StringValue") TitleValue.Name = "Title" TitleValue.Parent = StreamValue

StreamValue.Parent = game.ReplicatedStorage

local Billboard = game.ServerStorage.TwitchBillboard

local TwitchPart = game.ServerStorage.Twitch

while wait(10) do local json = game.HttpService:GetAsync("https://api.twitch.tv/kraken/streams/bereza12",true,{["Client-Id"] = "3ub3zo5itnwhs4fvaa25h0wxw6rt0l8"})

local streamInfo = game.HttpService:JSONDecode(json)
if streamInfo.stream ~= nil and streamInfo.stream ~= "null" then
	if not StreamOnline then
		StreamOnline = true
		StreamValue.Value = true
		TwitchPart.Parent = workspace
		game.ReplicatedStorage.Announce:FireAllClients("Twitchite has appeared in the mines!",5,Color3.new(0.8,0.3,1))
		game.ReplicatedStorage.Announce:FireAllClients("The more live viewers twitch.tv/bereza12 gets, the more it spawns!",5,Color3.new(0.8,0.3,1))
		Billboard.Parent = workspace
		-- show gui
	else

	end
	StreamValue.Viewers.Value = tonumber(streamInfo.stream.viewers)
	game.ReplicatedStorage.Ores.Twitchite.MaxRarity.Value = math.ceil(StreamValue.Viewers.Value / 100)
	game.ReplicatedStorage.Ores.Twitchite.MinRarity.Value = math.ceil(StreamValue.Viewers.Value / 100)
	game.ReplicatedStorage.Ores.Twitchite.XP.Value = tonumber(streamInfo.stream.viewers)
	StreamValue.Title.Value = streamInfo.stream.channel.status
	Billboard.Part.GUI.Viewers.Text = streamInfo.stream.viewers.." watching right now"
else
	game.ReplicatedStorage.Ores.Twitchite.MaxRarity.Value = 0
	game.ReplicatedStorage.Ores.Twitchite.MinRarity.Value = 0
	game.ReplicatedStorage.Ores.Twitchite.XP.Value = 0
	StreamOnline = false
	StreamValue.Value = false
	TwitchPart.Parent = game.ServerStorage
	Billboard.Parent = game.ServerStorage
end

end

1 answer

The HyperText Transfer Protocol (HTTP) 410 Gone client error response code indicates that access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.

This discussion is preserved as it was. New answers, comments, and votes are closed.