Difficulty Chart Obby: How can I reduce this script?

local left = script.Parent.Left
local right = script.Parent.Right
local num = script.Parent.StageNumber

local cp = workspace.Checkpoints

local plr = game.Players.LocalPlayer

  local c0=  cp:WaitForChild("0")
  local c1=  cp:WaitForChild("1")
  local c2=  cp:WaitForChild("2")
  local c3=  cp:WaitForChild("3")
  local c4=  cp:WaitForChild("4")
  local c5=  cp:WaitForChild("5")
  local c6=  cp:WaitForChild("6")
  local c7=  cp:WaitForChild("7")
  local c8=  cp:WaitForChild("8")
  local c9=  cp:WaitForChild("9")
local c10 = cp:WaitForChild("10")
local c11 = cp:WaitForChild("11")
local c12 = cp:WaitForChild("12")
local c13 = cp:WaitForChild("13")
local c14 = cp:WaitForChild("14")
local c15 = cp:WaitForChild("15")
local c16 = cp:WaitForChild("16")
local c17 = cp:WaitForChild("17")
local c18 = cp:WaitForChild("18")
local c19 = cp:WaitForChild("19")
local c20 = cp:WaitForChild("20")
local c21 = cp:WaitForChild("21")
local c22 = cp:WaitForChild("22")
local c23 = cp:WaitForChild("23")
local c24 = cp:WaitForChild("24")
local c25 = cp:WaitForChild("25")
local c26 = cp:WaitForChild("26")
local c27 = cp:WaitForChild("27")
local c28 = cp:WaitForChild("28")
local c29 = cp:WaitForChild("29")
local c30 = cp:WaitForChild("30")
local c31 = cp:WaitForChild("31")
local c32 = cp:WaitForChild("32")
local c33 = cp:WaitForChild("33")
local c34 = cp:WaitForChild("34")
local c35 = cp:WaitForChild("35")
local c36 = cp:WaitForChild("36")
local c37 = cp:WaitForChild("37")
local c38 = cp:WaitForChild("38")
local c39 = cp:WaitForChild("39")
local c40 = cp:WaitForChild("30")
local c41 = cp:WaitForChild("41")
local c42 = cp:WaitForChild("42")
local c43 = cp:WaitForChild("43")
local c44 = cp:WaitForChild("44")
local c45 = cp:WaitForChild("45")
local c46 = cp:WaitForChild("46")
local c47 = cp:WaitForChild("47")
local c48 = cp:WaitForChild("48")
local c49 = cp:WaitForChild("49")
local c50 = cp:WaitForChild("50")
local c51 = cp:WaitForChild("51")
local c52 = cp:WaitForChild("52")
local c53 = cp:WaitForChild("53")
local c54 = cp:WaitForChild("54")
local c55 = cp:WaitForChild("55")
local c56 = cp:WaitForChild("56")
local c57 = cp:WaitForChild("57")
local c58 = cp:WaitForChild("58")
local c59 = cp:WaitForChild("59")
local c60 = cp:WaitForChild("60")
local c61 = cp:WaitForChild("61")
local c62 = cp:WaitForChild("62")
local c63 = cp:WaitForChild("63")
local c64 = cp:WaitForChild("64")
local c65 = cp:WaitForChild("65")
local c66 = cp:WaitForChild("66")
local c67 = cp:WaitForChild("67")
local c68 = cp:WaitForChild("68")
local c69 = cp:WaitForChild("69")
local c70 = cp:WaitForChild("70")
local c71 = cp:WaitForChild("71")
local c72 = cp:WaitForChild("72")
local c73 = cp:WaitForChild("73")
local c74 = cp:WaitForChild("74")
local c75 = cp:WaitForChild("75")
local c76 = cp:WaitForChild("76")
local c77 = cp:WaitForChild("77")
local c78 = cp:WaitForChild("78")
local c79 = cp:WaitForChild("79")
local c80 = cp:WaitForChild("80")
local c81 = cp:WaitForChild("81")
local c82 = cp:WaitForChild("82")
local c83 = cp:WaitForChild("83")
local c84 = cp:WaitForChild("84")
local c85 = cp:WaitForChild("85")
local c86 = cp:WaitForChild("86")
local c87 = cp:WaitForChild("87")
local c88 = cp:WaitForChild("88")
local c89 = cp:WaitForChild("89")
local c90 = cp:WaitForChild("90")
local c91 = cp:WaitForChild("91")
local c92 = cp:WaitForChild("92")
local c93 = cp:WaitForChild("93")
local c94 = cp:WaitForChild("94")
local c95 = cp:WaitForChild("95")
local c96 = cp:WaitForChild("96")
local c97 = cp:WaitForChild("97")
local c98 = cp:WaitForChild("98")
local c99 = cp:WaitForChild("99")
local c100 = cp:WaitForChild("100")
local c101 = cp:WaitForChild("101")
local c102 = cp:WaitForChild("102")
local c103 = cp:WaitForChild("103")

num.FocusLost:Connect(function()
	if num.Text == "0" then
		if plr.leaderstats.Stage.Value >= 0 then
			num.Text = " 0 "
			plr.Character.HumanoidRootPart.CFrame = c0.CFrame
		else
	
		end
	end
	if num.Text == "1" then
		if plr.leaderstats.Stage.Value >= 1 then
			num.Text = " 1 "
			plr.Character.HumanoidRootPart.CFrame = c1.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "2" then
		if plr.leaderstats.Stage.Value >= 2 then
			num.Text = " 2 "
			plr.Character.HumanoidRootPart.CFrame = c2.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "3" then
		if plr.leaderstats.Stage.Value >= 3 then
			num.Text = " 3 "
			plr.Character.HumanoidRootPart.CFrame = c3.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "4" then
		if plr.leaderstats.Stage.Value >= 4 then
			num.Text = " 4 "
			plr.Character.HumanoidRootPart.CFrame = c4.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "5" then
		if plr.leaderstats.Stage.Value >= 5 then
			num.Text = " 5 "
			plr.Character.HumanoidRootPart.CFrame = c5.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "6" then
		if plr.leaderstats.Stage.Value >= 6 then
			num.Text = " 6 "
			plr.Character.HumanoidRootPart.CFrame = c6.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "7" then
		if plr.leaderstats.Stage.Value >= 7 then
			num.Text = " 7 "
			plr.Character.HumanoidRootPart.CFrame = c7.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "8" then
		if plr.leaderstats.Stage.Value >= 8 then
			num.Text = " 8 "
			plr.Character.HumanoidRootPart.CFrame = c8.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "9" then
		if plr.leaderstats.Stage.Value >= 9 then
			num.Text = " 9 "
			plr.Character.HumanoidRootPart.CFrame = c9.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "10" then
		if plr.leaderstats.Stage.Value >= 10 then
			num.Text = " 10 "
			plr.Character.HumanoidRootPart.CFrame = c10.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "11" then
		if plr.leaderstats.Stage.Value >= 11 then
			num.Text = " 11 "
			plr.Character.HumanoidRootPart.CFrame = c11.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "12" then
		if plr.leaderstats.Stage.Value >= 12 then
			num.Text = " 12 "
			plr.Character.HumanoidRootPart.CFrame = c12.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "13" then
		if plr.leaderstats.Stage.Value >= 13 then
			num.Text = " 13 "
			plr.Character.HumanoidRootPart.CFrame = c13.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "14" then
		if plr.leaderstats.Stage.Value >= 14 then
			num.Text = " 14 "
			plr.Character.HumanoidRootPart.CFrame = c14.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "15" then
		if plr.leaderstats.Stage.Value >= 15 then
			num.Text = " 15 "
			plr.Character.HumanoidRootPart.CFrame = c15.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "16" then
		if plr.leaderstats.Stage.Value >= 16 then
			num.Text = " 16 "
			plr.Character.HumanoidRootPart.CFrame = c16.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "17" then
		if plr.leaderstats.Stage.Value >= 17 then
			num.Text = " 17 "
			plr.Character.HumanoidRootPart.CFrame = c17.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "18" then
		if plr.leaderstats.Stage.Value >= 18 then
			num.Text = " 18 "
			plr.Character.HumanoidRootPart.CFrame = c18.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "19" then
		if plr.leaderstats.Stage.Value >= 19 then
			num.Text = " 19 "
			plr.Character.HumanoidRootPart.CFrame = c19.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "20" then
		if plr.leaderstats.Stage.Value >= 20 then
			num.Text = " 20 "
			plr.Character.HumanoidRootPart.CFrame = c20.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "21" then
		if plr.leaderstats.Stage.Value >= 21 then
			num.Text = " 21 "
			plr.Character.HumanoidRootPart.CFrame = c21.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "22" then
		if plr.leaderstats.Stage.Value >= 22 then
			num.Text = " 22 "
			plr.Character.HumanoidRootPart.CFrame = c22.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "23" then
		if plr.leaderstats.Stage.Value >= 23 then
			num.Text = " 23 "
			plr.Character.HumanoidRootPart.CFrame = c23.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "24" then
		if plr.leaderstats.Stage.Value >= 24 then
			num.Text = " 24 "
			plr.Character.HumanoidRootPart.CFrame = c24.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "25" then
		if plr.leaderstats.Stage.Value >= 25 then
			num.Text = " 25 "
			plr.Character.HumanoidRootPart.CFrame = c25.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "26" then
		if plr.leaderstats.Stage.Value >= 26 then
			num.Text = " 26 "
			plr.Character.HumanoidRootPart.CFrame = c26.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "27" then
		if plr.leaderstats.Stage.Value >= 27 then
			num.Text = " 27 "
			plr.Character.HumanoidRootPart.CFrame = c27.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "28" then
		if plr.leaderstats.Stage.Value >= 28 then
			num.Text = " 28 "
			plr.Character.HumanoidRootPart.CFrame = c28.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "29" then
		if plr.leaderstats.Stage.Value >= 29 then
			num.Text = " 29 "
			plr.Character.HumanoidRootPart.CFrame = c29.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "30" then
		if plr.leaderstats.Stage.Value >= 30 then
			num.Text = " 30 "
			plr.Character.HumanoidRootPart.CFrame = c30.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "31" then
		if plr.leaderstats.Stage.Value >= 31 then
			num.Text = " 31 "
			plr.Character.HumanoidRootPart.CFrame = c31.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "32" then
		if plr.leaderstats.Stage.Value >= 32 then
			num.Text = " 32 "
			plr.Character.HumanoidRootPart.CFrame = c32.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "33" then
		if plr.leaderstats.Stage.Value >= 33 then
			num.Text = " 33 "
			plr.Character.HumanoidRootPart.CFrame = c33.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "34" then
		if plr.leaderstats.Stage.Value >= 34 then
			num.Text = " 34 "
			plr.Character.HumanoidRootPart.CFrame = c34.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "35" then
		if plr.leaderstats.Stage.Value >= 35 then
			num.Text = " 35 "
			plr.Character.HumanoidRootPart.CFrame = c35.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "36" then
		if plr.leaderstats.Stage.Value >= 36 then
			num.Text = " 36 "
			plr.Character.HumanoidRootPart.CFrame = c36.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "37" then
		if plr.leaderstats.Stage.Value >= 37 then
			num.Text = " 37 "
			plr.Character.HumanoidRootPart.CFrame = c37.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "38" then
		if plr.leaderstats.Stage.Value >= 38 then
			num.Text = " 38 "
			plr.Character.HumanoidRootPart.CFrame = c38.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "39" then
		if plr.leaderstats.Stage.Value >= 39 then
			num.Text = " 39 "
			plr.Character.HumanoidRootPart.CFrame = c39.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "40" then
		if plr.leaderstats.Stage.Value >= 40 then
			num.Text = " 40 "
			plr.Character.HumanoidRootPart.CFrame = c40.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "41" then
		if plr.leaderstats.Stage.Value >= 41 then
			num.Text = " 41 "
			plr.Character.HumanoidRootPart.CFrame = c41.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "42" then
		if plr.leaderstats.Stage.Value >= 42 then
			num.Text = " 42 "
			plr.Character.HumanoidRootPart.CFrame = c42.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "43" then
		if plr.leaderstats.Stage.Value >= 43 then
			num.Text = " 43 "
			plr.Character.HumanoidRootPart.CFrame = c43.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "44" then
		if plr.leaderstats.Stage.Value >= 44 then
			num.Text = " 44 "
			plr.Character.HumanoidRootPart.CFrame = c44.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "45" then
		if plr.leaderstats.Stage.Value >= 45 then
			num.Text = " 45 "
			plr.Character.HumanoidRootPart.CFrame = c45.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "46" then
		if plr.leaderstats.Stage.Value >= 46 then
			num.Text = " 46 "
			plr.Character.HumanoidRootPart.CFrame = c46.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "47" then
		if plr.leaderstats.Stage.Value >= 47 then
			num.Text = " 47 "
			plr.Character.HumanoidRootPart.CFrame = c47.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "48" then
		if plr.leaderstats.Stage.Value >= 48 then
			num.Text = " 48 "
			plr.Character.HumanoidRootPart.CFrame = c48.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "49" then
		if plr.leaderstats.Stage.Value >= 49 then
			num.Text = " 49 "
			plr.Character.HumanoidRootPart.CFrame = c49.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "50" then
		if plr.leaderstats.Stage.Value >= 50 then
			num.Text = " 50 "
			plr.Character.HumanoidRootPart.CFrame = c50.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "51" then
		if plr.leaderstats.Stage.Value >= 51 then
			num.Text = " 51 "
			plr.Character.HumanoidRootPart.CFrame = c51.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "52" then
		if plr.leaderstats.Stage.Value >= 52 then
			num.Text = " 52 "
			plr.Character.HumanoidRootPart.CFrame = c52.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "53" then
		if plr.leaderstats.Stage.Value >= 53 then
			num.Text = " 53 "
			plr.Character.HumanoidRootPart.CFrame = c53.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "54" then
		if plr.leaderstats.Stage.Value >= 54 then
			num.Text = " 54 "
			plr.Character.HumanoidRootPart.CFrame = c54.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "55" then
		if plr.leaderstats.Stage.Value >= 55 then
			num.Text = " 55 "
			plr.Character.HumanoidRootPart.CFrame = c55.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "56" then
		if plr.leaderstats.Stage.Value >= 56 then
			num.Text = " 56 "
			plr.Character.HumanoidRootPart.CFrame = c56.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "57" then
		if plr.leaderstats.Stage.Value >= 57 then
			num.Text = " 57 "
			plr.Character.HumanoidRootPart.CFrame = c57.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "58" then
		if plr.leaderstats.Stage.Value >= 58 then
			num.Text = " 58"
			plr.Character.HumanoidRootPart.CFrame = c58.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "59" then
		if plr.leaderstats.Stage.Value >= 59 then
			num.Text = " 59 "
			plr.Character.HumanoidRootPart.CFrame = c59.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "60" then
		if plr.leaderstats.Stage.Value >= 60 then
			num.Text = " 60 "
			plr.Character.HumanoidRootPart.CFrame = c60.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "61" then
		if plr.leaderstats.Stage.Value >= 61 then
			num.Text = " 61 "
			plr.Character.HumanoidRootPart.CFrame = c61.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "62" then
		if plr.leaderstats.Stage.Value >= 62 then
			num.Text = " 62 "
			plr.Character.HumanoidRootPart.CFrame = c62.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "63" then
		if plr.leaderstats.Stage.Value >= 63 then
			num.Text = " 63 "
			plr.Character.HumanoidRootPart.CFrame = c63.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "64" then
		if plr.leaderstats.Stage.Value >= 64 then
			num.Text = " 64 "
			plr.Character.HumanoidRootPart.CFrame = c64.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "65" then
		if plr.leaderstats.Stage.Value >= 65 then
			num.Text = " 65 "
			plr.Character.HumanoidRootPart.CFrame = c65.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "66" then
		if plr.leaderstats.Stage.Value >= 66 then
			num.Text = " 66 "
			plr.Character.HumanoidRootPart.CFrame = c66.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "67" then
		if plr.leaderstats.Stage.Value >= 67 then
			num.Text = " 67 "
			plr.Character.HumanoidRootPart.CFrame = c67.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "68" then
		if plr.leaderstats.Stage.Value >= 68 then
			num.Text = " 68 "
			plr.Character.HumanoidRootPart.CFrame = c68.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "69" then
		if plr.leaderstats.Stage.Value >= 69 then
			num.Text = " 69 "
			plr.Character.HumanoidRootPart.CFrame = c69.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "70" then
		if plr.leaderstats.Stage.Value >= 70 then
			num.Text = " 70 "
			plr.Character.HumanoidRootPart.CFrame = c70.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "71" then
		if plr.leaderstats.Stage.Value >= 71 then
			num.Text = " 71 "
			plr.Character.HumanoidRootPart.CFrame = c71.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "72" then
		if plr.leaderstats.Stage.Value >= 72 then
			num.Text = " 72 "
			plr.Character.HumanoidRootPart.CFrame = c72.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "73" then
		if plr.leaderstats.Stage.Value >= 73 then
			num.Text = " 73 "
			plr.Character.HumanoidRootPart.CFrame = c73.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "74" then
		if plr.leaderstats.Stage.Value >= 74 then
			num.Text = " 74 "
			plr.Character.HumanoidRootPart.CFrame = c74.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "75" then
		if plr.leaderstats.Stage.Value >= 75 then
			num.Text = " 75 "
			plr.Character.HumanoidRootPart.CFrame = c75.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "76" then
		if plr.leaderstats.Stage.Value >= 76 then
			num.Text = " 76 "
			plr.Character.HumanoidRootPart.CFrame = c76.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "77" then
		if plr.leaderstats.Stage.Value >= 77 then
			num.Text = " 77 "
			plr.Character.HumanoidRootPart.CFrame = c77.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "78" then
		if plr.leaderstats.Stage.Value >= 78 then
			num.Text = " 78 "
			plr.Character.HumanoidRootPart.CFrame = c78.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "79" then
		if plr.leaderstats.Stage.Value >= 79 then
			num.Text = " 79 "
			plr.Character.HumanoidRootPart.CFrame = c79.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "80" then
		if plr.leaderstats.Stage.Value >= 80 then
			num.Text = " 80 "
			plr.Character.HumanoidRootPart.CFrame = c80.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "81" then
		if plr.leaderstats.Stage.Value >= 81 then
			num.Text = " 81 "
			plr.Character.HumanoidRootPart.CFrame = c81.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "82" then
		if plr.leaderstats.Stage.Value >= 82 then
			num.Text = " 82 "
			plr.Character.HumanoidRootPart.CFrame = c82.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "83" then
		if plr.leaderstats.Stage.Value >= 83 then
			num.Text = " 83 "
			plr.Character.HumanoidRootPart.CFrame = c83.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "84" then
		if plr.leaderstats.Stage.Value >= 84 then
			num.Text = " 84 "
			plr.Character.HumanoidRootPart.CFrame = c84.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "85" then
		if plr.leaderstats.Stage.Value >= 85 then
			num.Text = " 85 "
			plr.Character.HumanoidRootPart.CFrame = c85.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "86" then
		if plr.leaderstats.Stage.Value >= 86 then
			num.Text = " 86 "
			plr.Character.HumanoidRootPart.CFrame = c86.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "87" then
		if plr.leaderstats.Stage.Value >= 87 then
			num.Text = " 87 "
			plr.Character.HumanoidRootPart.CFrame = c87.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "88" then
		if plr.leaderstats.Stage.Value >= 88 then
			num.Text = " 88 "
			plr.Character.HumanoidRootPart.CFrame = c88.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "89" then
		if plr.leaderstats.Stage.Value >= 89 then
			num.Text = " 89 "
			plr.Character.HumanoidRootPart.CFrame = c89.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "90" then
		if plr.leaderstats.Stage.Value >= 90 then
			num.Text = " 90 "
			plr.Character.HumanoidRootPart.CFrame = c90.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "91" then
		if plr.leaderstats.Stage.Value >= 91 then
			num.Text = " 91 "
			plr.Character.HumanoidRootPart.CFrame = c91.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "92" then
		if plr.leaderstats.Stage.Value >= 92 then
			num.Text = " 92 "
			plr.Character.HumanoidRootPart.CFrame = c92.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "93" then
		if plr.leaderstats.Stage.Value >= 93 then
			num.Text = " 93 "
			plr.Character.HumanoidRootPart.CFrame = c93.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "94" then
		if plr.leaderstats.Stage.Value >= 94 then
			num.Text = " 94 "
			plr.Character.HumanoidRootPart.CFrame = c94.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "95" then
		if plr.leaderstats.Stage.Value >= 95 then
			num.Text = " 95 "
			plr.Character.HumanoidRootPart.CFrame = c95.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "96" then
		if plr.leaderstats.Stage.Value >= 96 then
			num.Text = " 96 "
			plr.Character.HumanoidRootPart.CFrame = c96.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "97" then
		if plr.leaderstats.Stage.Value >= 97 then
			num.Text = " 97 "
			plr.Character.HumanoidRootPart.CFrame = c97.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "98" then
		if plr.leaderstats.Stage.Value >= 98 then
			num.Text = " 98 "
			plr.Character.HumanoidRootPart.CFrame = c98.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "99" then
		if plr.leaderstats.Stage.Value >= 99 then
			num.Text = " 99 "
			plr.Character.HumanoidRootPart.CFrame = c99.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "100" then
		if plr.leaderstats.Stage.Value >= 100 then
			num.Text = " 100 "
			plr.Character.HumanoidRootPart.CFrame = c100.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "101" then
		if plr.leaderstats.Stage.Value >= 101 then
			num.Text = " 101 "
			plr.Character.HumanoidRootPart.CFrame = c101.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "102" then
		if plr.leaderstats.Stage.Value >= 102 then
			num.Text = " 102 "
			plr.Character.HumanoidRootPart.CFrame = c102.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == "103" then
		if plr.leaderstats.Stage.Value >= 103 then
			num.Text = " 103 "
			plr.Character.HumanoidRootPart.CFrame = c103.CFrame
		else
			num.Text = ""
		end
	end
end)



left.MouseButton1Click:Connect(function()
	
	if num.Text == " 1 " then
		num.Text = " 0 "
		plr.Character.HumanoidRootPart.CFrame = c0.CFrame
	end
	if num.Text == " 2 " then
		num.Text = " 1 "
		plr.Character.HumanoidRootPart.CFrame = c1.CFrame
	end
	if num.Text == " 3 " then
		num.Text = " 2 "
		plr.Character.HumanoidRootPart.CFrame = c2.CFrame
	end
	if num.Text == " 4 " then
		num.Text = " 3 "
		plr.Character.HumanoidRootPart.CFrame = c3.CFrame
	end
	if num.Text == " 5 " then
		num.Text = " 4 "
		plr.Character.HumanoidRootPart.CFrame = c4.CFrame
	end
	if num.Text == " 6 " then
		num.Text = " 5 "
		plr.Character.HumanoidRootPart.CFrame = c5.CFrame
	end
	if num.Text == " 7 " then
		num.Text = " 6 "
		plr.Character.HumanoidRootPart.CFrame = c6.CFrame
	end
	if num.Text == " 8 " then
		num.Text = " 7 "
		plr.Character.HumanoidRootPart.CFrame = c7.CFrame
	end
	if num.Text == " 9 " then
		num.Text = " 8 "
		plr.Character.HumanoidRootPart.CFrame = c8.CFrame
	end
	if num.Text == " 10 " then
		num.Text = " 9 "
		plr.Character.HumanoidRootPart.CFrame = c9.CFrame
	end
	if num.Text == " 11 " then
		num.Text = " 10 "
		plr.Character.HumanoidRootPart.CFrame = c10.CFrame
	end
	if num.Text == " 12 " then
		num.Text = " 11 "
		plr.Character.HumanoidRootPart.CFrame = c11.CFrame
	end
	if num.Text == " 13 " then
		num.Text = " 12 "
		plr.Character.HumanoidRootPart.CFrame = c12.CFrame
	end
	if num.Text == " 14 " then
		num.Text = " 13 "
		plr.Character.HumanoidRootPart.CFrame = c13.CFrame
	end
	if num.Text == " 15 " then
		num.Text = " 14 "
		plr.Character.HumanoidRootPart.CFrame = c14.CFrame
	end
	if num.Text == " 16 " then
		num.Text = " 15 "
		plr.Character.HumanoidRootPart.CFrame = c15.CFrame
	end
	if num.Text == " 17 " then
		num.Text = " 16 "
		plr.Character.HumanoidRootPart.CFrame = c16.CFrame
	end
	if num.Text == " 18 " then
		num.Text = " 17 "
		plr.Character.HumanoidRootPart.CFrame = c17.CFrame
	end
	if num.Text == " 19 " then
		num.Text = " 18 "
		plr.Character.HumanoidRootPart.CFrame = c18.CFrame
	end
	if num.Text == " 20 " then
		num.Text = " 19 "
		plr.Character.HumanoidRootPart.CFrame = c19.CFrame
	end
	if num.Text == " 21 " then
		num.Text = " 20 "
		plr.Character.HumanoidRootPart.CFrame = c20.CFrame
	end
	if num.Text == " 22 " then
		num.Text = " 21 "
		plr.Character.HumanoidRootPart.CFrame = c21.CFrame
	end
	if num.Text == " 23 " then
		num.Text = " 22 "
		plr.Character.HumanoidRootPart.CFrame = c22.CFrame
	end
	if num.Text == " 24 " then
		num.Text = " 23 "
		plr.Character.HumanoidRootPart.CFrame = c23.CFrame
	end
	if num.Text == " 25 " then
		num.Text = " 24 "
		plr.Character.HumanoidRootPart.CFrame = c24.CFrame
	end
	if num.Text == " 26 " then
		num.Text = " 25 "
		plr.Character.HumanoidRootPart.CFrame = c25.CFrame
	end
	if num.Text == " 27 " then
		num.Text = " 26 "
		plr.Character.HumanoidRootPart.CFrame = c26.CFrame
	end
	if num.Text == " 28 " then
		num.Text = " 27 "
		plr.Character.HumanoidRootPart.CFrame = c27.CFrame
	end
	if num.Text == " 29 " then
		num.Text = " 28 "
		plr.Character.HumanoidRootPart.CFrame = c28.CFrame
	end
	if num.Text == " 30 " then
		num.Text = " 29 "
		plr.Character.HumanoidRootPart.CFrame = c29.CFrame
	end
	if num.Text == " 31 " then
		num.Text = " 30 "
		plr.Character.HumanoidRootPart.CFrame = c30.CFrame
	end
	if num.Text == " 32 " then
		num.Text = " 31 "
		plr.Character.HumanoidRootPart.CFrame = c31.CFrame
	end
	if num.Text == " 33 " then
		num.Text = " 32 "
		plr.Character.HumanoidRootPart.CFrame = c32.CFrame
	end
	if num.Text == " 34 " then
		num.Text = " 33 "
		plr.Character.HumanoidRootPart.CFrame = c33.CFrame
	end
	if num.Text == " 35 " then
		num.Text = " 34 "
		plr.Character.HumanoidRootPart.CFrame = c34.CFrame
	end
	if num.Text == " 36 " then
		num.Text = " 35 "
		plr.Character.HumanoidRootPart.CFrame = c35.CFrame
	end
	if num.Text == " 37 " then
		num.Text = " 36 "
		plr.Character.HumanoidRootPart.CFrame = c36.CFrame
	end
	if num.Text == " 38 " then
		num.Text = " 37 "
		plr.Character.HumanoidRootPart.CFrame = c37.CFrame
	end
	if num.Text == " 39 " then
		num.Text = " 38 "
		plr.Character.HumanoidRootPart.CFrame = c38.CFrame
	end
	if num.Text == " 40 " then
		num.Text = " 39 "
		plr.Character.HumanoidRootPart.CFrame = c39.CFrame
	end
	if num.Text == " 41 " then
		num.Text = " 40 "
		plr.Character.HumanoidRootPart.CFrame = c40.CFrame
	end
	if num.Text == " 42 " then
		num.Text = " 41 "
		plr.Character.HumanoidRootPart.CFrame = c41.CFrame
	end
	if num.Text == " 43 " then
		num.Text = " 42 "
		plr.Character.HumanoidRootPart.CFrame = c42.CFrame
	end
	if num.Text == " 44 " then
		num.Text = " 43 "
		plr.Character.HumanoidRootPart.CFrame = c43.CFrame
	end
	if num.Text == " 45 " then
		num.Text = " 44 "
		plr.Character.HumanoidRootPart.CFrame = c44.CFrame
	end
	if num.Text == " 46 " then
		num.Text = " 45 "
		plr.Character.HumanoidRootPart.CFrame = c45.CFrame
	end
	if num.Text == " 47 " then
		num.Text = " 46 "
		plr.Character.HumanoidRootPart.CFrame = c46.CFrame
	end
	if num.Text == " 48 " then
		num.Text = " 47 "
		plr.Character.HumanoidRootPart.CFrame = c47.CFrame
	end
	if num.Text == " 49 " then
		num.Text = " 48 "
		plr.Character.HumanoidRootPart.CFrame = c48.CFrame
	end
	if num.Text == " 50 " then
		num.Text = " 49 "
		plr.Character.HumanoidRootPart.CFrame = c49.CFrame
	end
	if num.Text == " 51 " then
		num.Text = " 50 "
		plr.Character.HumanoidRootPart.CFrame = c50.CFrame
	end
	if num.Text == " 52 " then
		num.Text = " 51 "
		plr.Character.HumanoidRootPart.CFrame = c51.CFrame
	end
	if num.Text == " 53 " then
		num.Text = " 52 "
		plr.Character.HumanoidRootPart.CFrame = c52.CFrame
	end
	if num.Text == " 54 " then
		num.Text = " 53 "
		plr.Character.HumanoidRootPart.CFrame = c53.CFrame
	end
	if num.Text == " 55 " then
		num.Text = " 54 "
		plr.Character.HumanoidRootPart.CFrame = c54.CFrame
	end
	if num.Text == " 56 " then
		num.Text = " 55 "
		plr.Character.HumanoidRootPart.CFrame = c55.CFrame
	end
	if num.Text == " 57 " then
		num.Text = " 56 "
		plr.Character.HumanoidRootPart.CFrame = c56.CFrame
	end
	if num.Text == " 58 " then
		num.Text = " 57 "
		plr.Character.HumanoidRootPart.CFrame = c57.CFrame
	end
	if num.Text == " 59 " then
		num.Text = " 58 "
		plr.Character.HumanoidRootPart.CFrame = c58.CFrame
	end
	if num.Text == " 60 " then
		num.Text = " 59 "
		plr.Character.HumanoidRootPart.CFrame = c59.CFrame
	end
	if num.Text == " 61 " then
		num.Text = " 60 "
		plr.Character.HumanoidRootPart.CFrame = c60.CFrame
	end
	if num.Text == " 62 " then
		num.Text = " 61 "
		plr.Character.HumanoidRootPart.CFrame = c61.CFrame
	end
	if num.Text == " 63 " then
		num.Text = " 62 "
		plr.Character.HumanoidRootPart.CFrame = c62.CFrame
	end
	if num.Text == " 64 " then
		num.Text = " 63 "
		plr.Character.HumanoidRootPart.CFrame = c63.CFrame
	end
	if num.Text == " 65 " then
		num.Text = " 64 "
		plr.Character.HumanoidRootPart.CFrame = c64.CFrame
	end
	if num.Text == " 66 " then
		num.Text = " 65 "
		plr.Character.HumanoidRootPart.CFrame = c65.CFrame
	end
	if num.Text == " 67 " then
		num.Text = " 66 "
		plr.Character.HumanoidRootPart.CFrame = c66.CFrame
	end
	if num.Text == " 68 " then
		num.Text = " 67 "
		plr.Character.HumanoidRootPart.CFrame = c67.CFrame
	end
	if num.Text == " 69 " then
		num.Text = " 68 "
		plr.Character.HumanoidRootPart.CFrame = c68.CFrame
	end
	if num.Text == " 70 " then
		num.Text = " 69 "
		plr.Character.HumanoidRootPart.CFrame = c69.CFrame
	end
	if num.Text == " 71 " then
		num.Text = " 70 "
		plr.Character.HumanoidRootPart.CFrame = c70.CFrame
	end
	if num.Text == " 72 " then
		num.Text = " 71 "
		plr.Character.HumanoidRootPart.CFrame = c71.CFrame
	end
	if num.Text == " 73 " then
		num.Text = " 72 "
		plr.Character.HumanoidRootPart.CFrame = c72.CFrame
	end
	if num.Text == " 74 " then
		num.Text = " 73 "
		plr.Character.HumanoidRootPart.CFrame = c73.CFrame
	end
	if num.Text == " 75 " then
		num.Text = " 74 "
		plr.Character.HumanoidRootPart.CFrame = c74.CFrame
	end
	if num.Text == " 76 " then
		num.Text = " 75 "
		plr.Character.HumanoidRootPart.CFrame = c75.CFrame
	end
	if num.Text == " 77 " then
		num.Text = " 76 "
		plr.Character.HumanoidRootPart.CFrame = c76.CFrame
	end
	if num.Text == " 78 " then
		num.Text = " 77 "
		plr.Character.HumanoidRootPart.CFrame = c77.CFrame
	end
	if num.Text == " 79 " then
		num.Text = " 78 "
		plr.Character.HumanoidRootPart.CFrame = c78.CFrame
	end
	if num.Text == " 80 " then
		num.Text = " 79 "
		plr.Character.HumanoidRootPart.CFrame = c79.CFrame
	end
	if num.Text == " 81 " then
		num.Text = " 80 "
		plr.Character.HumanoidRootPart.CFrame = c80.CFrame
	end
	if num.Text == " 82 " then
		num.Text = " 81 "
		plr.Character.HumanoidRootPart.CFrame = c81.CFrame
	end
	if num.Text == " 83 " then
		num.Text = " 82 "
		plr.Character.HumanoidRootPart.CFrame = c82.CFrame
	end
	if num.Text == " 84 " then
		num.Text = " 83 "
		plr.Character.HumanoidRootPart.CFrame = c83.CFrame
	end
	if num.Text == " 85 " then
		num.Text = " 84 "
		plr.Character.HumanoidRootPart.CFrame = c84.CFrame
	end
	if num.Text == " 86 " then
		num.Text = " 85 "
		plr.Character.HumanoidRootPart.CFrame = c85.CFrame
	end
	if num.Text == " 87 " then
		num.Text = " 86 "
		plr.Character.HumanoidRootPart.CFrame = c86.CFrame
	end
	if num.Text == " 88 " then
		num.Text = " 87 "
		plr.Character.HumanoidRootPart.CFrame = c87.CFrame
	end
	if num.Text == " 89 " then
		num.Text = " 88 "
		plr.Character.HumanoidRootPart.CFrame = c88.CFrame
	end
	if num.Text == " 90 " then
		num.Text = " 89 "
		plr.Character.HumanoidRootPart.CFrame = c89.CFrame
	end
	if num.Text == " 91 " then
		num.Text = " 90 "
		plr.Character.HumanoidRootPart.CFrame = c90.CFrame
	end
	if num.Text == " 92 " then
		num.Text = " 91 "
		plr.Character.HumanoidRootPart.CFrame = c91.CFrame
	end
	if num.Text == " 93 " then
		num.Text = " 92 "
		plr.Character.HumanoidRootPart.CFrame = c92.CFrame
	end
	if num.Text == " 94 " then
		num.Text = " 93 "
		plr.Character.HumanoidRootPart.CFrame = c93.CFrame
	end
	if num.Text == " 95 " then
		num.Text = " 94 "
		plr.Character.HumanoidRootPart.CFrame = c94.CFrame
	end
	if num.Text == " 96 " then
		num.Text = " 95 "
		plr.Character.HumanoidRootPart.CFrame = c95.CFrame
	end
	if num.Text == " 97 " then
		num.Text = " 96 "
		plr.Character.HumanoidRootPart.CFrame = c96.CFrame
	end
	if num.Text == " 98 " then
		num.Text = " 97 "
		plr.Character.HumanoidRootPart.CFrame = c97.CFrame
	end
	if num.Text == " 99 " then
		num.Text = " 98 "
		plr.Character.HumanoidRootPart.CFrame = c98.CFrame
	end
	if num.Text == " 100 " then
		num.Text = " 99 "
		plr.Character.HumanoidRootPart.CFrame = c99.CFrame
	end
	if num.Text == " 101 " then
		num.Text = " 100 "
		plr.Character.HumanoidRootPart.CFrame = c100.CFrame
	end
	if num.Text == " 102 " then
		num.Text = " 101 "
		plr.Character.HumanoidRootPart.CFrame = c101.CFrame
	end
	if num.Text == " 103 " then
		num.Text = " 102 "
		plr.Character.HumanoidRootPart.CFrame = c102.CFrame
	end
end)

right.MouseButton1Click:Connect(function()
	if num.Text == " 102 " then
		if plr.leaderstats.Stage.Value >= 103 then
			num.Text = " 103 "
			plr.Character.HumanoidRootPart.CFrame = c103.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 101 " then
		if plr.leaderstats.Stage.Value >= 102 then
			num.Text = " 102 "
			plr.Character.HumanoidRootPart.CFrame = c102.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 100 " then
		if plr.leaderstats.Stage.Value >= 101 then
			num.Text = " 101 "
			plr.Character.HumanoidRootPart.CFrame = c101.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 99 " then
		if plr.leaderstats.Stage.Value >= 100 then
			num.Text = " 100 "
			plr.Character.HumanoidRootPart.CFrame = c100.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 98 " then
		if plr.leaderstats.Stage.Value >= 99 then
			num.Text = " 99 "
			plr.Character.HumanoidRootPart.CFrame = c99.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 97 " then
		if plr.leaderstats.Stage.Value >= 98 then
			num.Text = " 98 "
			plr.Character.HumanoidRootPart.CFrame = c98.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 96 " then
		if plr.leaderstats.Stage.Value >= 97 then
			num.Text = " 97 "
			plr.Character.HumanoidRootPart.CFrame = c97.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 95 " then
		if plr.leaderstats.Stage.Value >= 96 then
			num.Text = " 96 "
			plr.Character.HumanoidRootPart.CFrame = c96.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 94 " then
		if plr.leaderstats.Stage.Value >= 95 then
			num.Text = " 95 "
			plr.Character.HumanoidRootPart.CFrame = c95.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 93 " then
		if plr.leaderstats.Stage.Value >= 94 then
			num.Text = " 94 "
			plr.Character.HumanoidRootPart.CFrame = c94.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 92 " then
		if plr.leaderstats.Stage.Value >= 93 then
			num.Text = " 93 "
			plr.Character.HumanoidRootPart.CFrame = c93.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 91 " then
		if plr.leaderstats.Stage.Value >= 92 then
			num.Text = " 92 "
			plr.Character.HumanoidRootPart.CFrame = c92.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 90 " then
		if plr.leaderstats.Stage.Value >= 91 then
			num.Text = " 91 "
			plr.Character.HumanoidRootPart.CFrame = c91.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 89 " then
		if plr.leaderstats.Stage.Value >= 90 then
			num.Text = " 90 "
			plr.Character.HumanoidRootPart.CFrame = c90.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 88 " then
		if plr.leaderstats.Stage.Value >= 89 then
			num.Text = " 89 "
			plr.Character.HumanoidRootPart.CFrame = c89.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 87 " then
		if plr.leaderstats.Stage.Value >= 88 then
			num.Text = " 88 "
			plr.Character.HumanoidRootPart.CFrame = c88.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 86 " then
		if plr.leaderstats.Stage.Value >= 87 then
			num.Text = " 87 "
			plr.Character.HumanoidRootPart.CFrame = c87.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 85 " then
		if plr.leaderstats.Stage.Value >= 86 then
			num.Text = " 86 "
			plr.Character.HumanoidRootPart.CFrame = c86.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 84 " then
		if plr.leaderstats.Stage.Value >= 85 then
			num.Text = " 85 "
			plr.Character.HumanoidRootPart.CFrame = c85.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 83 " then
		if plr.leaderstats.Stage.Value >= 84 then
			num.Text = " 84 "
			plr.Character.HumanoidRootPart.CFrame = c84.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 82 " then
		if plr.leaderstats.Stage.Value >= 83 then
			num.Text = " 83 "
			plr.Character.HumanoidRootPart.CFrame = c83.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 81 " then
		if plr.leaderstats.Stage.Value >= 82 then
			num.Text = " 82 "
			plr.Character.HumanoidRootPart.CFrame = c82.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 80 " then
		if plr.leaderstats.Stage.Value >= 81 then
			num.Text = " 81 "
			plr.Character.HumanoidRootPart.CFrame = c81.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 79 " then
		if plr.leaderstats.Stage.Value >= 80 then
			num.Text = " 80 "
			plr.Character.HumanoidRootPart.CFrame = c80.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 78 " then
		if plr.leaderstats.Stage.Value >= 79 then
			num.Text = " 79 "
			plr.Character.HumanoidRootPart.CFrame = c79.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 77 " then
		if plr.leaderstats.Stage.Value >= 78 then
			num.Text = " 78 "
			plr.Character.HumanoidRootPart.CFrame = c78.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 76 " then
		if plr.leaderstats.Stage.Value >= 77 then
			num.Text = " 77 "
			plr.Character.HumanoidRootPart.CFrame = c77.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 75 " then
		if plr.leaderstats.Stage.Value >= 76 then
			num.Text = " 76 "
			plr.Character.HumanoidRootPart.CFrame = c76.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 74 " then
		if plr.leaderstats.Stage.Value >= 75 then
			num.Text = " 75 "
			plr.Character.HumanoidRootPart.CFrame = c75.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 73 " then
		if plr.leaderstats.Stage.Value >= 74 then
			num.Text = " 74 "
			plr.Character.HumanoidRootPart.CFrame = c74.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 72 " then
		if plr.leaderstats.Stage.Value >= 73 then
			num.Text = " 73 "
			plr.Character.HumanoidRootPart.CFrame = c73.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 71 " then
		if plr.leaderstats.Stage.Value >= 72 then
			num.Text = " 72 "
			plr.Character.HumanoidRootPart.CFrame = c72.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 70 " then
		if plr.leaderstats.Stage.Value >= 71 then
			num.Text = " 71 "
			plr.Character.HumanoidRootPart.CFrame = c71.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 69 " then
		if plr.leaderstats.Stage.Value >= 70 then
			num.Text = " 70 "
			plr.Character.HumanoidRootPart.CFrame = c70.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 68 " then
		if plr.leaderstats.Stage.Value >= 69 then
			num.Text = " 69 "
			plr.Character.HumanoidRootPart.CFrame = c69.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 67 " then
		if plr.leaderstats.Stage.Value >= 68 then
			num.Text = " 68 "
			plr.Character.HumanoidRootPart.CFrame = c68.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 66 " then
		if plr.leaderstats.Stage.Value >= 67 then
			num.Text = " 67 "
			plr.Character.HumanoidRootPart.CFrame = c67.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 65 " then
		if plr.leaderstats.Stage.Value >= 66 then
			num.Text = " 66 "
			plr.Character.HumanoidRootPart.CFrame = c66.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 64 " then
		if plr.leaderstats.Stage.Value >= 65 then
			num.Text = " 65 "
			plr.Character.HumanoidRootPart.CFrame = c65.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 63 " then
		if plr.leaderstats.Stage.Value >= 64 then
			num.Text = " 64 "
			plr.Character.HumanoidRootPart.CFrame = c64.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 62 " then
		if plr.leaderstats.Stage.Value >= 63 then
			num.Text = " 63 "
			plr.Character.HumanoidRootPart.CFrame = c63.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 61 " then
		if plr.leaderstats.Stage.Value >= 62 then
			num.Text = " 62 "
			plr.Character.HumanoidRootPart.CFrame = c62.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 60 " then
		if plr.leaderstats.Stage.Value >= 61 then
			num.Text = " 61 "
			plr.Character.HumanoidRootPart.CFrame = c61.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 59 " then
		if plr.leaderstats.Stage.Value >= 60 then
			num.Text = " 60 "
			plr.Character.HumanoidRootPart.CFrame = c60.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 58 " then
		if plr.leaderstats.Stage.Value >= 59 then
			num.Text = " 59 "
			plr.Character.HumanoidRootPart.CFrame = c59.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 57 " then
		if plr.leaderstats.Stage.Value >= 58 then
			num.Text = " 58 "
			plr.Character.HumanoidRootPart.CFrame = c58.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 56 " then
		if plr.leaderstats.Stage.Value >= 57 then
			num.Text = " 57 "
			plr.Character.HumanoidRootPart.CFrame = c57.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 55 " then
		if plr.leaderstats.Stage.Value >= 56 then
			num.Text = " 56 "
			plr.Character.HumanoidRootPart.CFrame = c56.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 54 " then
		if plr.leaderstats.Stage.Value >= 55 then
			num.Text = " 55 "
			plr.Character.HumanoidRootPart.CFrame = c55.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 53 " then
		if plr.leaderstats.Stage.Value >= 54 then
			num.Text = " 54 "
			plr.Character.HumanoidRootPart.CFrame = c54.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 52 " then
		if plr.leaderstats.Stage.Value >= 53 then
			num.Text = " 53 "
			plr.Character.HumanoidRootPart.CFrame = c53.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 51 " then
		if plr.leaderstats.Stage.Value >= 52 then
			num.Text = " 52 "
			plr.Character.HumanoidRootPart.CFrame = c52.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 50 " then
		if plr.leaderstats.Stage.Value >= 51 then
			num.Text = " 51 "
			plr.Character.HumanoidRootPart.CFrame = c51.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 49 " then
		if plr.leaderstats.Stage.Value >= 50 then
			num.Text = " 50 "
			plr.Character.HumanoidRootPart.CFrame = c50.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 48 " then
		if plr.leaderstats.Stage.Value >= 49 then
			num.Text = " 49 "
			plr.Character.HumanoidRootPart.CFrame = c49.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 47 " then
		if plr.leaderstats.Stage.Value >= 48 then
			num.Text = " 48 "
			plr.Character.HumanoidRootPart.CFrame = c48.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 46 " then
		if plr.leaderstats.Stage.Value >= 47 then
			num.Text = " 47 "
			plr.Character.HumanoidRootPart.CFrame = c47.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 45 " then
		if plr.leaderstats.Stage.Value >= 46 then
			num.Text = " 46 "
			plr.Character.HumanoidRootPart.CFrame = c46.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 44 " then
		if plr.leaderstats.Stage.Value >= 45 then
			num.Text = " 45 "
			plr.Character.HumanoidRootPart.CFrame = c45.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 43 " then
		if plr.leaderstats.Stage.Value >= 44 then
			num.Text = " 44 "
			plr.Character.HumanoidRootPart.CFrame = c44.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 42 " then
		if plr.leaderstats.Stage.Value >= 43 then
			num.Text = " 43 "
			plr.Character.HumanoidRootPart.CFrame = c43.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 41 " then
		if plr.leaderstats.Stage.Value >= 42 then
			num.Text = " 42 "
			plr.Character.HumanoidRootPart.CFrame = c42.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 40 " then
		if plr.leaderstats.Stage.Value >= 41 then
			num.Text = " 41 "
			plr.Character.HumanoidRootPart.CFrame = c41.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 39 " then
		if plr.leaderstats.Stage.Value >= 40 then
			num.Text = " 40 "
			plr.Character.HumanoidRootPart.CFrame = c40.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 38 " then
		if plr.leaderstats.Stage.Value >= 39 then
			num.Text = " 39 "
			plr.Character.HumanoidRootPart.CFrame = c39.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 37 " then
		if plr.leaderstats.Stage.Value >= 38 then
			num.Text = " 38 "
			plr.Character.HumanoidRootPart.CFrame = c38.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 36 " then
		if plr.leaderstats.Stage.Value >= 37 then
			num.Text = " 37 "
			plr.Character.HumanoidRootPart.CFrame = c37.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 35 " then
		if plr.leaderstats.Stage.Value >= 36 then
			num.Text = " 36 "
			plr.Character.HumanoidRootPart.CFrame = c36.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 34 " then
		if plr.leaderstats.Stage.Value >= 35 then
			num.Text = " 35 "
			plr.Character.HumanoidRootPart.CFrame = c35.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 33 " then
		if plr.leaderstats.Stage.Value >= 34 then
			num.Text = " 34 "
			plr.Character.HumanoidRootPart.CFrame = c34.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 32 " then
		if plr.leaderstats.Stage.Value >= 33 then
			num.Text = " 33 "
			plr.Character.HumanoidRootPart.CFrame = c33.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 31 " then
		if plr.leaderstats.Stage.Value >= 32 then
			num.Text = " 32 "
			plr.Character.HumanoidRootPart.CFrame = c32.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 30 " then
		if plr.leaderstats.Stage.Value >= 31 then
			num.Text = " 31 "
			plr.Character.HumanoidRootPart.CFrame = c31.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 29 " then
		if plr.leaderstats.Stage.Value >= 30 then
			num.Text = " 30 "
			plr.Character.HumanoidRootPart.CFrame = c30.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 28 " then
		if plr.leaderstats.Stage.Value >= 29 then
			num.Text = " 29 "
			plr.Character.HumanoidRootPart.CFrame = c29.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 27 " then
		if plr.leaderstats.Stage.Value >= 28 then
			num.Text = " 28 "
			plr.Character.HumanoidRootPart.CFrame = c28.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 26 " then
		if plr.leaderstats.Stage.Value >= 27 then
			num.Text = " 27 "
			plr.Character.HumanoidRootPart.CFrame = c27.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 25 " then
		if plr.leaderstats.Stage.Value >= 26 then
			num.Text = " 26 "
			plr.Character.HumanoidRootPart.CFrame = c26.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 24 " then
		if plr.leaderstats.Stage.Value >= 25 then
			num.Text = " 25 "
			plr.Character.HumanoidRootPart.CFrame = c25.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 23 " then
		if plr.leaderstats.Stage.Value >= 24 then
			num.Text = " 24 "
			plr.Character.HumanoidRootPart.CFrame = c24.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 22 " then
		if plr.leaderstats.Stage.Value >= 23 then
			num.Text = " 23 "
			plr.Character.HumanoidRootPart.CFrame = c23.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 21 " then
		if plr.leaderstats.Stage.Value >= 22 then
			num.Text = " 22 "
			plr.Character.HumanoidRootPart.CFrame = c22.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 20 " then
		if plr.leaderstats.Stage.Value >= 21 then
			num.Text = " 21 "
			plr.Character.HumanoidRootPart.CFrame = c21.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 19 " then
		if plr.leaderstats.Stage.Value >= 20 then
			num.Text = " 20 "
			plr.Character.HumanoidRootPart.CFrame = c20.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 18 " then
		if plr.leaderstats.Stage.Value >= 19 then
			num.Text = " 19 "
			plr.Character.HumanoidRootPart.CFrame = c19.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 17 " then
		if plr.leaderstats.Stage.Value >= 18 then
			num.Text = " 18 "
			plr.Character.HumanoidRootPart.CFrame = c18.CFrame
		else
			num.Text = ""
		end
	end
	if num.Text == " 16 " then
		if plr.leaderstats.Stage.Value >= 17 then
			num.Text = " 17 "
			plr.Character.HumanoidRootPart.CFrame = c17.CFrame
		else
			num.Text = ""
		end
	end

Yeah, I know: the worst excuse for a script. 2000+ lines of code and that isn’t enough. I made this like 6 months ago and it doesn’t work that well for my Difficulty Chart obby. Anyone know how I can make this into a concise, working script, please let me know!

3 Likes
local Players = game:GetService("Players")
local Player = Players.LocalPlayer

num.FocusLost:Connect(function()
   if tonumber(num.Text) > Player.leaderstats.Stage.Value then return end
   local Checkpoint = workspace.Checkpoints:FindFirstChild(num.Text)
   if Checkpoint then
      local Char = Player.Character
      if Char and Char:FindFirstChild("HumanoidRootPart") then
          Char.HumanoidRootPart.CFrame = Checkpoint.CFrame + Vector3.new(0, 3, 0)
      end
   end
end)

num:GetPropertyChangedSignal("Text"):Connect(function()
   num.Text = num.Text:gsub("%D+", ""):sub(1, 3)
end)

Edit: Sorry for the wrong script lol. I didnt even look on what your script actually does and though that its for checkpoints. (Edited the script)

2 Likes
num.FocusLost:Connect(function()
    local Txt = num.Text
    local Point = cp:FindFirstChild(Txt)
    if Point then
        if plr.leaderstats.Stage.Value >= tonumber(Txt) then
            num.Text = " "..Txt.." "
            plr.Character.HumanoidRootPart.CFrame = Point.CFrame
        end
    end
end)
1 Like

You should also check if the player types a non-number character.

if tonumber(num.Text) and tonumber(num.Text) > Player.leaderstats.Stage.Value then return end

@Thedagz

if tonumber(Txt) and plr.leaderstats.Stage.Value >= tonumber(Txt) then
2 Likes

All number non-number characters should be removed when typing the text and the text should be preferably limited to 3 characters.

1 Like

To clarify, I would put this in a serverscript?

local Players = game:GetService("Players")

for _, v in ipairs(workspace.Checkpoints:GetChildren()) do
	v.Touched:Connect(function(hit)
		if Players:GetPlayerFromCharacter(hit.Parent) then
			local HumanoidRootPart = hit.Parent:FindFirstChild("HumanoidRootPart")
			if HumanoidRootPart then
				HumanoidRootPart.CFrame = v.CFrame + Vector3.new(0, 3, 0)
				if tonumber(Players:GetPlayerFromCharacter(hit.Parent).PlayerGui.Stage.Shadow.Frame.StageNumber.Text) and tonumber(Players:GetPlayerFromCharacter(hit.Parent).PlayerGui.Stage.Shadow.Frame.StageNumber.Text) > Players:GetPlayerFromCharacter(hit.Parent).leaderstats.Stage.Value then return end
			end
		end
	end)
end
1 Like
local left = script.Parent.Left
local right = script.Parent.Right
local num = script.Parent.StageNumber
local cp = workspace.Checkpoints
local plr = game.Players.LocalPlayer

local cT = {}
for i = 1, 103 do 
  ct[i] = cp:WaitForChild(tostring(i))
end

num.FocusLost:Connect(function()
  local n = tonumber(num.Text)
  local new = ''
  if n and plr.leaderstats.Stage.Value >= n then
    new = tostring(n)
    plr.Character.HumanoidRootPart.CFrame = cT[n].CFrame
  end
  num.Text = new
end
1 Like

Use the new script and it should be a local script. You also need a remote event and do the check on server.

1 Like

I mean, this works but it’s extremely buggy. Debounce?

[Alpha] Slippery Difficulty Chart Obby - Roblox Studio - Gyazo

1 Like

Yeah, what I did should work, and it kind of does with the exception above.

1 Like

It was an example reference. In addition to it, you can alternatively do

num:GetPropertyChangedSignal("Text"):Connect(function()
    num.Text = string.gsub(num.Text, "%D", "")
end)

Edit: I didn’t see.

1 Like

Is this for the stage transfer or what?

1 Like

Thats what I already did. (chars)

2 Likes

I tested it out and advanced one stage and it updated the stage transfer at the top. It just teleported me to the checkpoints multiple times and whenever I jumped it teleported me again for some odd reason.

1 Like

Did you use my new script? Its impossible because the FocusLost event fires once and there is no loops.

1 Like

Does the same thing, but worse.

[Alpha] Slippery Difficulty Chart Obby - Roblox Studio - Gyazo

1 Like

Thats 100% not my script. (chars)

1 Like

Your edited one? At the top? Yeah it’s that one. The new one you put in your edit.

1 Like

OH SORRY! I’ve forgot to delete the other stuff. It works, with one exception. When you die, it TPs you to your highest stage even if it’s not the one you typed in.

1 Like

Local script:

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local Stage = Player:WaitForChild("leaderstats"):WaitForChild("Stage")
local Remote = ReplicatedStorage:WaitForChild("StageTransfer")

num.FocusLost:Connect(function()
   if tonumber(num.Text) > Stage.Value then return end
   Remote:FireServer(tonumber(num.Text))
end)

right.MouseButton1Click:Connect(function()
   Remote:FireServer("right")
end)

left.MouseButton1Click:Connect(function()
   Remote:FireServer("left")
end)

num:GetPropertyChangedSignal("Text"):Connect(function()
   num.Text = num.Text:gsub("%D+", ""):sub(1, 3)
end)

Server script:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Remote = ReplicatedStorage.StageTransfer

Remote.OnServerEvent:Connect(function(plr, dir)
   local TeleportedStage = plr.TeleportedStage
   local Stage = plr.leaderstats.Stage
   if dir == "right" then
      local Checkpoint = workspace.Checkpoints:FindFirstChild(TeleportedStage.Value + 1)
      if Stage.Value >= TeleportedStage.Value + 1 and Checkpoint and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
         TeleportedStage.Value += 1
         player.Character.HumanoidRootPart.CFrame = Checkpoint.CFrame + Vector3.new(0, 3, 0)
      end
   elseif dir == "left" then
      local Checkpoint = workspace.Checkpoints:FindFirstChild(TeleportedStage.Value - 1)
      if Checkpoint and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
         TeleportedStage.Value -= 1
         player.Character.HumanoidRootPart.CFrame = Checkpoint.CFrame + Vector3.new(0, 3, 0)
      end
   elseif tonumber(dir) then
      local Checkpoint = workspace.Checkpoints:FindFirstChild(dir)
      if Stage.Value >= dir and Checkpoint and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
         TeleportedStage.Value = dir
         player.Character.HumanoidRootPart.CFrame = Checkpoint.CFrame + Vector3.new(0, 3, 0)
      end
   end    
end)

You also have to create an IntValue with name “TeleportedStage” in the script where you create leaderstats with PlayerAdded event and create a RemoteEvent with name “StageTransfer” in the ReplicatedStorage.

You shoud use the TeleportedStage value instead of Stage value.

2 Likes