--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)