function Next()if script.Parent.TABS:FindFirstChild(script.Parent.CurrentType.Value..("\070\114\097\109\101"..script.Parent.CurrentPage.Value+1))~=nil then HideAllTabs()script.Parent.CurrentPage.Value=script.Parent.CurrentPage.Value+1 script.Parent.Page.Text=script.Parent.CurrentPage.Value;(script.Parent.TABS:FindFirstChild(script.Parent.CurrentType.Value..("\070\114\097\109\101"..script.Parent.CurrentPage.Value))).Visible=true else print("\084\104\097\116 \112\097\103\101 \100\111\101\115 \110\111\116 \101\120\105\115\116\046")end end function Prev()if script.Parent.TABS:FindFirstChild(script.Parent.CurrentType.Value..("\070\114\097\109\101"..script.Parent.CurrentPage.Value-1))~=nil then HideAllTabs()script.Parent.CurrentPage.Value=script.Parent.CurrentPage.Value-1 script.Parent.Page.Text=script.Parent.CurrentPage.Value;(script.Parent.TABS:FindFirstChild(script.Parent.CurrentType.Value..("\070\114\097\109\101"..script.Parent.CurrentPage.Value))).Visible=true else print("\084\104\097\116 \112\097\103\101 \100\111\101\115 \110\111\116 \101\120\105\115\116\046")end end script.Parent.SelectTab.Swords.MouseButton1Click:connect(Sword)script.Parent.SelectTab.Staffs.MouseButton1Click:connect(Staff)script.Parent.SelectTab.Ranged.MouseButton1Click:connect(Ranged)
--If you want to add custom tabs, feel free to uncomment and edit. You may copy and paste.
--[[function CustomTab() 
	HideAllTabs()
	script.Parent.TABS.TabNameHere1.Visible = true
	script.Parent.SelectTab.TabButtonNameHere.Style = "RobloxButtonDefault"
	script.Parent.CurrentPage.Value = 1
	script.Parent.CurrentType.Value = "TabNameHere"
	script.Parent.Page.Text = script.Parent.CurrentPage.Value
end]]

function Next()
	if
		script.Parent.TABS:FindFirstChild(
			script.Parent.CurrentType.Value .. "Frame" .. (script.Parent.CurrentPage.Value + 1)
		) ~= nil
	then
		HideAllTabs()
		script.Parent.CurrentPage.Value = script.Parent.CurrentPage.Value + 1
		script.Parent.Page.Text = script.Parent.CurrentPage.Value
		script.Parent.TABS:FindFirstChild(script.Parent.CurrentType.Value .. "Frame" .. script.Parent.CurrentPage.Value).Visible =
			true
	else
		print("That page does not exist.")
	end
end

function Prev()
	if
		script.Parent.TABS:FindFirstChild(
			script.Parent.CurrentType.Value .. "Frame" .. (script.Parent.CurrentPage.Value - 1)
		) ~= nil
	then
		HideAllTabs()
		script.Parent.CurrentPage.Value = script.Parent.CurrentPage.Value - 1
		script.Parent.Page.Text = script.Parent.CurrentPage.Value
		script.Parent.TABS:FindFirstChild(script.Parent.CurrentType.Value .. "Frame" .. script.Parent.CurrentPage.Value).Visible =
			true
	else
		print("That page does not exist.")
	end
end

script.Parent.SelectTab.Swords.MouseButton1Click:connect(Sword)
script.Parent.SelectTab.Staffs.MouseButton1Click:connect(Staff)
script.Parent.SelectTab.Ranged.MouseButton1Click:connect(Ranged)
