Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.26 KB | None | 0 0
  1. local raceInformation = { -- The "Items"
  2. starterLine = {
  3. noStarterLine = {
  4. Color3.fromRGB(255, 255, 255);
  5. Color3.fromRGB(255, 255, 255);
  6. Color3.fromRGB(255, 255, 255);
  7. "No start line for this race."
  8. };
  9.  
  10. homeStraight = {
  11. Color3.fromRGB(248, 248, 248);
  12. Color3.fromRGB(248, 248, 248);
  13. Color3.fromRGB(248, 248, 248);
  14. "This race starts on the home straight, and runners will start on a straight white line."
  15. };
  16.  
  17. event200M = {
  18. Color3.fromRGB(248, 248, 248);
  19. Color3.fromRGB(248, 248, 248);
  20. Color3.fromRGB(248, 248, 248);
  21. "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."
  22. };
  23.  
  24. event300M = {
  25. Color3.fromRGB(248, 248, 248);
  26. Color3.fromRGB(248, 248, 248);
  27. Color3.fromRGB(248, 248, 248);
  28. "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."
  29. };
  30.  
  31. event400M = {
  32. Color3.fromRGB(248, 248, 248);
  33. Color3.fromRGB(248, 248, 248);
  34. Color3.fromRGB(248, 248, 248);
  35. "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."
  36. };
  37.  
  38. event800M = {
  39. Color3.fromRGB(248, 248, 248);
  40. Color3.fromRGB(248, 248, 248);
  41. Color3.fromRGB(248, 248, 248);
  42. "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."
  43. };
  44.  
  45. event4x200mR = {
  46. Color3.fromRGB(248, 248, 248);
  47. Color3.fromRGB(117, 0, 0);
  48. Color3.fromRGB(248, 248, 248);
  49. "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."
  50. };
  51.  
  52. event4x400mR = {
  53. Color3.fromRGB(248, 248, 248);
  54. Color3.fromRGB(13, 105, 172);
  55. Color3.fromRGB(248, 248, 248);
  56. "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."
  57. }
  58. };
  59.  
  60. leg2 = {
  61. accelerationZone = {
  62. noAccelerationZone = {
  63. Color3.fromRGB(255, 255, 255);
  64. Color3.fromRGB(255, 255, 255);
  65. Color3.fromRGB(255, 255, 255);
  66. "No acceleration zone for this race."
  67. };
  68.  
  69. event4x100mR = {
  70. Color3.fromRGB(0, 32, 96);
  71. "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."
  72. };
  73.  
  74. };
  75.  
  76. beginningZone = {
  77. noBeginningZone = {
  78. Color3.fromRGB(255, 255, 255);
  79. Color3.fromRGB(255, 255, 255);
  80. Color3.fromRGB(255, 255, 255);
  81. "No beginning zone for this race."
  82. };
  83.  
  84. event4x100mR = {
  85. Color3.fromRGB(150, 85, 85);
  86. Color3.fromRGB(245, 205, 48);
  87. Color3.fromRGB(245, 205, 48);
  88. "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."
  89. };
  90. };
  91.  
  92. recommendedExchange = {
  93. noRecommendedExchange = {
  94. Color3.fromRGB(255, 255, 255);
  95. Color3.fromRGB(255, 255, 255);
  96. Color3.fromRGB(255, 255, 255);
  97. "No recommended exchange area for this race."
  98. };
  99.  
  100. event4x100mR = {
  101. Color3.fromRGB(248, 248, 248);
  102. Color3.fromRGB(248, 248, 248);
  103. Color3.fromRGB(248, 248, 248);
  104. "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."
  105. };
  106. };
  107.  
  108. endZone = {
  109. noEndZone = {
  110. Color3.fromRGB(255, 255, 255);
  111. Color3.fromRGB(255, 255, 255);
  112. Color3.fromRGB(255, 255, 255);
  113. "No end zone for this race."
  114. };
  115.  
  116. event4x100mR = {
  117. Color3.fromRGB(150, 85, 85);
  118. Color3.fromRGB(245, 205, 48);
  119. Color3.fromRGB(245, 205, 48);
  120. "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."
  121. };
  122. }
  123. };
  124.  
  125. leg3 = {
  126. accelerationZone = {
  127. noAccelerationZone = {
  128. Color3.fromRGB(255, 255, 255);
  129. Color3.fromRGB(255, 255, 255);
  130. Color3.fromRGB(255, 255, 255);
  131. "No acceleration zone for this race."
  132. };
  133.  
  134. event4x100mR = {
  135. Color3.fromRGB(0, 32, 96);
  136. "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."
  137. };
  138.  
  139. };
  140.  
  141. beginningZone = {
  142. noBeginningZone = {
  143. Color3.fromRGB(255, 255, 255);
  144. Color3.fromRGB(255, 255, 255);
  145. Color3.fromRGB(255, 255, 255);
  146. "No beginning zone for this race."
  147. };
  148.  
  149. event4x100mR = {
  150. Color3.fromRGB(150, 85, 85);
  151. Color3.fromRGB(245, 205, 48);
  152. Color3.fromRGB(245, 205, 48);
  153. "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."
  154. };
  155. };
  156.  
  157. recommendedExchange = {
  158. noRecommendedExchange = {
  159. Color3.fromRGB(255, 255, 255);
  160. Color3.fromRGB(255, 255, 255);
  161. Color3.fromRGB(255, 255, 255);
  162. "No recommended exchange area for this race."
  163. };
  164.  
  165. event4x100mR = {
  166. Color3.fromRGB(248, 248, 248);
  167. Color3.fromRGB(248, 248, 248);
  168. Color3.fromRGB(248, 248, 248);
  169. "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."
  170. };
  171. };
  172.  
  173. endZone = {
  174. noEndZone = {
  175. Color3.fromRGB(255, 255, 255);
  176. Color3.fromRGB(255, 255, 255);
  177. Color3.fromRGB(255, 255, 255);
  178. "No end zone for this race."
  179. };
  180.  
  181. event4x100mR = {
  182. Color3.fromRGB(150, 85, 85);
  183. Color3.fromRGB(245, 205, 48);
  184. Color3.fromRGB(245, 205, 48);
  185. "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."
  186. };
  187. }
  188. };
  189.  
  190. leg4 = {
  191. accelerationZone = {
  192. noAccelerationZone = {
  193. Color3.fromRGB(255, 255, 255);
  194. Color3.fromRGB(255, 255, 255);
  195. Color3.fromRGB(255, 255, 255);
  196. "No acceleration zone for this race."
  197. };
  198.  
  199. event4x100mR = {
  200. Color3.fromRGB(0, 32, 96);
  201. "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."
  202. };
  203.  
  204. };
  205.  
  206. beginningZone = {
  207. noBeginningZone = {
  208. Color3.fromRGB(255, 255, 255);
  209. Color3.fromRGB(255, 255, 255);
  210. Color3.fromRGB(255, 255, 255);
  211. "No beginning zone for this race."
  212. };
  213.  
  214. event4x100mR = {
  215. Color3.fromRGB(150, 85, 85);
  216. Color3.fromRGB(245, 205, 48);
  217. Color3.fromRGB(245, 205, 48);
  218. "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."
  219. };
  220. };
  221.  
  222. recommendedExchange = {
  223. noRecommendedExchange = {
  224. Color3.fromRGB(255, 255, 255);
  225. Color3.fromRGB(255, 255, 255);
  226. Color3.fromRGB(255, 255, 255);
  227. "No recommended exchange area for this race."
  228. };
  229.  
  230. event4x100mR = {
  231. Color3.fromRGB(248, 248, 248);
  232. Color3.fromRGB(248, 248, 248);
  233. Color3.fromRGB(248, 248, 248);
  234. "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."
  235. };
  236. };
  237.  
  238. endZone = {
  239. noEndZone = {
  240. Color3.fromRGB(255, 255, 255);
  241. Color3.fromRGB(255, 255, 255);
  242. Color3.fromRGB(255, 255, 255);
  243. "No end zone for this race."
  244. };
  245.  
  246. event4x100mR = {
  247. Color3.fromRGB(150, 85, 85);
  248. Color3.fromRGB(245, 205, 48);
  249. Color3.fromRGB(245, 205, 48);
  250. "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."
  251. };
  252. }
  253. }
  254. }
  255.  
  256. local selectedInformation = { -- Values
  257. starterLine = {
  258. 1;
  259. };
  260.  
  261. leg2 = {
  262. 1;
  263. 1;
  264. 1;
  265. 1
  266. };
  267.  
  268. leg3 = {
  269. 1;
  270. 1;
  271. 1;
  272. 1
  273. };
  274.  
  275. leg4 = {
  276. 1;
  277. 1;
  278. 1;
  279. 1
  280. }
  281. }
  282.  
  283. informationFrame.starterInformation.informationFrame.starterLine.next.Activated:Connect(function() -- The "printing" part
  284. print("test1")
  285. for i, v in pairs(selectedInformation.starterLine) do
  286. print("test2")
  287. if selectedInformation.starterLine[1] == i then
  288. print("test3")
  289. if selectedInformation.starterLine[1] == #raceInformation.starterLine then
  290. selectedInformation.starterLine[1] = 1
  291. informationFrame.starterInformation.informationFrame.starterLine.left.BackgroundColor3 = raceInformation.starterLine[selectedInformation.starterLine[1]][1]
  292. informationFrame.starterInformation.informationFrame.starterLine.middle.BackgroundColor3 = raceInformation.starterLine[selectedInformation.starterLine[1]][2]
  293. informationFrame.starterInformation.informationFrame.starterLine.right.BackgroundColor3 = raceInformation.starterLine[selectedInformation.starterLine[1]][3]
  294. informationFrame.starterInformation.informationFrame.starterLine.description.Text = raceInformation.starterLine[selectedInformation.starterLine[1]][4]
  295. else
  296. selectedInformation.starterLine[1] = selectedInformation.starterLine[1] + 1
  297. print(raceInformation.starterLine[selectedInformation.starterLine[1]]) -- The "printing" part
  298. informationFrame.starterInformation.informationFrame.starterLine.left.BackgroundColor3 = raceInformation.starterLine[selectedInformation.starterLine[1]][1]
  299. informationFrame.starterInformation.informationFrame.starterLine.middle.BackgroundColor3 = raceInformation.starterLine[selectedInformation.starterLine[1]][2]
  300. informationFrame.starterInformation.informationFrame.starterLine.right.BackgroundColor3 = raceInformation.starterLine[selectedInformation.starterLine[1]][3]
  301. informationFrame.starterInformation.informationFrame.starterLine.description.Text = raceInformation.starterLine[selectedInformation.starterLine[1]][4]
  302. end
  303. end
  304. end
  305. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement