Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local raceInformation = { -- The "Items"
- starterLine = {
- noStarterLine = {
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- "No start line for this race."
- };
- homeStraight = {
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- "This race starts on the home straight, and runners will start on a straight white line."
- };
- event200M = {
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- "The 200 meter race starts on the second turn, and runners will start on the staggered white lines. Since this race only has 1 turn, the starting stagger will be a 1 turn stagger. There will be no cutting in during this race."
- };
- event300M = {
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- "The 300 meter race starts on the back straight, and runners will start on the staggered white lines. Since this race only has 1 straight and turn, the starting stagger will be a 1 turn stagger. There will be no cutting in during this race."
- };
- event400M = {
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- "The 400 meter race starts on the first turn, and runners will start on the staggered white lines. Since this race has 2 straights and turns, the starting stagger will be a 2 turn stagger. There will be no cutting in during this race."
- };
- event800M = {
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- "The 800 meter race starts on the first turn, and runners will start on the staggered white and green lines. Since this race has 4 straights and turns, the starting stagger will be a 1 turn stagger. Runners will be able to cut in after the first turn."
- };
- event4x200mR = {
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(117, 0, 0);
- Color3.fromRGB(248, 248, 248);
- "The 4x200 meter relay starts on the first turn, and runners will start on the staggered white and red lines. Since this race has 4 straights and turns, the starting stagger will be a 4 turn stagger. There will be no cutting in during this race."
- };
- event4x400mR = {
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(13, 105, 172);
- Color3.fromRGB(248, 248, 248);
- "The 4x400 meter relay starts on the first turn, and runners will start on the staggered white and blue lines. Since this race has 8 straights and turns, the starting stagger will be a 3 turn stagger. Runners will be able to cut in after the third turn."
- }
- };
- leg2 = {
- accelerationZone = {
- noAccelerationZone = {
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- "No acceleration zone for this race."
- };
- event4x100mR = {
- Color3.fromRGB(0, 32, 96);
- "The 2nd legs can choose to start from the acceleration zone, but may not pass it as it will result in a disqualification. The acceleration zone is 20 meters from the 300 meter start, almost making the stagger a 1 turn stagger."
- };
- };
- beginningZone = {
- noBeginningZone = {
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- "No beginning zone for this race."
- };
- event4x100mR = {
- Color3.fromRGB(150, 85, 85);
- Color3.fromRGB(245, 205, 48);
- Color3.fromRGB(245, 205, 48);
- "The first exchange must be within the beginning and end of the zone, or else it will result in a disqualification. The beginning of the zone is 10 meters from the 300 meter start, almost making the stagger a 1 turn stagger."
- };
- };
- recommendedExchange = {
- noRecommendedExchange = {
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- "No recommended exchange area for this race."
- };
- event4x100mR = {
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- "The recommended exchange area is somewhat very near the 300 meter start. The 300 meter start is also considered the middle of the zone, hence the stagger is a 1 turn stagger."
- };
- };
- endZone = {
- noEndZone = {
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- "No end zone for this race."
- };
- event4x100mR = {
- Color3.fromRGB(150, 85, 85);
- Color3.fromRGB(245, 205, 48);
- Color3.fromRGB(245, 205, 48);
- "The first exchange must be within the beginning and end of the zone, or else it will result in a disqualification. The end of the zone is 10 meters from the 300 meter start, hence the stagger is a 1 turn stagger."
- };
- }
- };
- leg3 = {
- accelerationZone = {
- noAccelerationZone = {
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- "No acceleration zone for this race."
- };
- event4x100mR = {
- Color3.fromRGB(0, 32, 96);
- "The 3rd legs can choose to start from the acceleration zone, but may not pass it as it will result in a disqualification. The acceleration zone is 20 meters from the 200 meter start, making the stagger a 1 turn stagger."
- };
- };
- beginningZone = {
- noBeginningZone = {
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- "No beginning zone for this race."
- };
- event4x100mR = {
- Color3.fromRGB(150, 85, 85);
- Color3.fromRGB(245, 205, 48);
- Color3.fromRGB(245, 205, 48);
- "The second exchange must be within the beginning and end of the zone, or else it will result in a disqualification. The beginning of the zone is 10 meters from the 200 meter start, making the stagger a 1 turn stagger."
- };
- };
- recommendedExchange = {
- noRecommendedExchange = {
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- "No recommended exchange area for this race."
- };
- event4x100mR = {
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- "The recommended exchange area is somewhat very near the 200 meter start. The 200 meter start is also considered the middle of the zone, hence the stagger is a 1 turn stagger."
- };
- };
- endZone = {
- noEndZone = {
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- "No end zone for this race."
- };
- event4x100mR = {
- Color3.fromRGB(150, 85, 85);
- Color3.fromRGB(245, 205, 48);
- Color3.fromRGB(245, 205, 48);
- "The second exchange must be within the beginning and end of the zone, or else it will result in a disqualification. The end of the zone is 10 meters from the 200 meter start, almost making the stagger a 1 turn stagger."
- };
- }
- };
- leg4 = {
- accelerationZone = {
- noAccelerationZone = {
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- "No acceleration zone for this race."
- };
- event4x100mR = {
- Color3.fromRGB(0, 32, 96);
- "The 4th legs can choose to start from the acceleration zone, but may not pass it as it will result in a disqualification. The acceleration zone is 20 meters from the 100 meter curve start, almost making the stagger a 0 turn stagger."
- };
- };
- beginningZone = {
- noBeginningZone = {
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- "No beginning zone for this race."
- };
- event4x100mR = {
- Color3.fromRGB(150, 85, 85);
- Color3.fromRGB(245, 205, 48);
- Color3.fromRGB(245, 205, 48);
- "The third exchange must be within the beginning and end of the zone, or else it will result in a disqualification. The beginning of the zone is 10 meters from the 100 meter curve start, almost making the stagger a 0 turn stagger."
- };
- };
- recommendedExchange = {
- noRecommendedExchange = {
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- "No recommended exchange area for this race."
- };
- event4x100mR = {
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- Color3.fromRGB(248, 248, 248);
- "The recommended exchange area is somewhat very near the 100 meter curve start. The 100 meter curve start is also considered the middle of the zone, hence the stagger is a 0 turn stagger."
- };
- };
- endZone = {
- noEndZone = {
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- Color3.fromRGB(255, 255, 255);
- "No end zone for this race."
- };
- event4x100mR = {
- Color3.fromRGB(150, 85, 85);
- Color3.fromRGB(245, 205, 48);
- Color3.fromRGB(245, 205, 48);
- "The third exchange must be within the beginning and end of the zone, or else it will result in a disqualification. The end of the zone is 10 meters from the 100 meter curve start, making the stagger a 0 turn stagger."
- };
- }
- }
- }
- local selectedInformation = { -- Values
- starterLine = {
- 1;
- };
- leg2 = {
- 1;
- 1;
- 1;
- 1
- };
- leg3 = {
- 1;
- 1;
- 1;
- 1
- };
- leg4 = {
- 1;
- 1;
- 1;
- 1
- }
- }
- informationFrame.starterInformation.informationFrame.starterLine.next.Activated:Connect(function() -- The "printing" part
- print("test1")
- for i, v in pairs(selectedInformation.starterLine) do
- print("test2")
- if selectedInformation.starterLine[1] == i then
- print("test3")
- if selectedInformation.starterLine[1] == #raceInformation.starterLine then
- selectedInformation.starterLine[1] = 1
- informationFrame.starterInformation.informationFrame.starterLine.left.BackgroundColor3 = raceInformation.starterLine[selectedInformation.starterLine[1]][1]
- informationFrame.starterInformation.informationFrame.starterLine.middle.BackgroundColor3 = raceInformation.starterLine[selectedInformation.starterLine[1]][2]
- informationFrame.starterInformation.informationFrame.starterLine.right.BackgroundColor3 = raceInformation.starterLine[selectedInformation.starterLine[1]][3]
- informationFrame.starterInformation.informationFrame.starterLine.description.Text = raceInformation.starterLine[selectedInformation.starterLine[1]][4]
- else
- selectedInformation.starterLine[1] = selectedInformation.starterLine[1] + 1
- print(raceInformation.starterLine[selectedInformation.starterLine[1]]) -- The "printing" part
- informationFrame.starterInformation.informationFrame.starterLine.left.BackgroundColor3 = raceInformation.starterLine[selectedInformation.starterLine[1]][1]
- informationFrame.starterInformation.informationFrame.starterLine.middle.BackgroundColor3 = raceInformation.starterLine[selectedInformation.starterLine[1]][2]
- informationFrame.starterInformation.informationFrame.starterLine.right.BackgroundColor3 = raceInformation.starterLine[selectedInformation.starterLine[1]][3]
- informationFrame.starterInformation.informationFrame.starterLine.description.Text = raceInformation.starterLine[selectedInformation.starterLine[1]][4]
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement