Advertisement
Friaza

Untitled

Aug 9th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.94 KB | None | 0 0
  1. Run = game:GetService("RunService")
  2.  
  3. function Quests(Player)
  4. print(Player)
  5. local Player = Player
  6. if Player.PlayerGui:FindFirstChild("Note") == nil then
  7.  
  8. if Player.Progress.Value == 0 then
  9. --NEW QUEST
  10.  
  11. Note = game.SoundService.Note:clone()
  12. Note.Parent = Player.PlayerGui
  13. x = Note.Paper
  14. min = 1
  15. max = 1
  16. min = min +Player.Quest.Value /20
  17. if min >= 10 then
  18. min = 10
  19. end
  20. min = math.floor(min)
  21. max = max +Player.Quest.Value /8
  22. max = math.floor(max)
  23. if max >= 20 then
  24. max = 20
  25. end
  26. i = math.random(1,5)
  27. result = math.random(min, max)
  28. Difficulty = math.floor(result)
  29. if i == 1 then
  30. x.Ammount.Text = "Defeat " ..result
  31. Player.QuestThrase.Value = 1
  32. elseif i == 2 then
  33. x.Ammount.Text = "Destroy " ..result
  34. Player.QuestThrase.Value = 2
  35. elseif i == 3 then
  36. x.Ammount.Text = "Wipe out " ..result
  37. Player.QuestThrase.Value = 3
  38. elseif i == 4 then
  39. x.Ammount.Text = "Kill " ..result
  40. Player.QuestThrase.Value = 4
  41. elseif i == 5 then
  42. x.Ammount.Text = "Anihalate " ..result
  43. Player.QuestThrase.Value = 5
  44. end
  45. Player.Kills.Value = 0
  46. Player.Goal.Value = result
  47. Tasks = {"Lightball"}
  48. if Player.Quest.Value >= 2 then
  49. table.insert(Tasks, "Sandball")
  50. end
  51. if Player.Quest.Value >= 5 then
  52. table.insert(Tasks, "Earthball")
  53. end
  54. if Player.Quest.Value >= 7 then
  55. table.insert(Tasks, "Grassball")
  56. end
  57. if Player.Quest.Value >= 9 then
  58. table.insert(Tasks, "Treetroll")
  59. end
  60. if Player.Quest.Value >= 12 then
  61. table.insert(Tasks, "Rockball")
  62. end
  63. if Player.Quest.Value >= 14 then
  64. table.insert(Tasks, "Waterball")
  65. end
  66. if Player.Quest.Value >= 16 then
  67. table.insert(Tasks, "Troll")
  68. end
  69. if Player.Quest.Value >= 25 then
  70. table.insert(Tasks, "Boulderball")
  71. end
  72. if Player.Quest.Value >= 32 then
  73. table.insert(Tasks, "Flamuga")
  74. end
  75. if Player.Quest.Value >= 50 then
  76. table.insert(Tasks, "Dasha")
  77. end
  78. if Player.Quest.Value >= 75 then
  79. table.insert(Tasks, "Giant")
  80. end
  81. if Player.Quest.Value >= 100 then
  82. table.insert(Tasks, "Iceuron")
  83. end
  84. if Player.Quest.Value >= 150 then
  85. table.insert(Tasks, "Mizugame")
  86. end
  87. i = math.random(1,#Tasks)
  88. x.Task.Text = Tasks[i]
  89. Player.NPC.Value = Tasks[i]
  90. Difadd = 0
  91. if Player.NPC.Value == "Lightball" then
  92. Difadd = 1
  93. elseif Player.NPC.Value == "Sandball" then
  94. Difadd = 2
  95. elseif Player.NPC.Value == "Earthball" then
  96. Difadd = 3
  97. elseif Player.NPC.Value == "Grassball" then
  98. Difadd = 4
  99. elseif Player.NPC.Value == "Treetroll" then
  100. Difadd = 5
  101. elseif Player.NPC.Value == "Rockball" then
  102. Difadd = 6
  103. elseif Player.NPC.Value == "Waterball" then
  104. Difadd = 7
  105. elseif Player.NPC.Value == "Troll" then
  106. Difadd = 8
  107. elseif Player.NPC.Value == "Boulderball" then
  108. Difadd = 9
  109. elseif Player.NPC.Value == "Flamuga" then
  110. Difadd = 10
  111. elseif Player.NPC.Value == "Dasha" then
  112. Difadd = 14
  113. elseif Player.NPC.Value == "Giant" then
  114. Difadd = 17
  115. elseif Player.NPC.Value == "Iceuron" then
  116. Difadd = 22
  117. elseif Player.NPC.Value == "Mizugame" then
  118. Difadd = 26
  119. end
  120. difb = 1
  121. difc = Difadd /30
  122. difd = 1 *Difadd
  123. if difd < 1 then
  124. difd = 1
  125. end
  126. Difficulty = Difficulty *difd
  127. math.floor(Difficulty)
  128. Fd = Difficulty +Difadd
  129. if Fd == 1 or Fd == 2 then
  130. Rank = "G-"
  131. elseif Fd == 3 or Fd == 4 then
  132. Rank = "G"
  133. elseif Fd == 5 or Fd == 6 then
  134. Rank = "G+"
  135. elseif Fd == 7 or Fd == 8 then
  136. Rank = "F-"
  137. elseif Fd == 9 or Fd == 10 then
  138. Rank = "F"
  139. elseif Fd == 11 or Fd == 12 then
  140. Rank = "F+"
  141. elseif Fd == 13 or Fd == 14 then
  142. Rank = "E-"
  143. elseif Fd == 15 or Fd == 16 then
  144. Rank = "E"
  145. elseif Fd == 17 or Fd == 18 then
  146. Rank = "E+"
  147. elseif Fd == 19 or Fd == 20 then
  148. Rank = "D-"
  149. elseif Fd == 21 or Fd == 22 then
  150. Rank = "D"
  151. elseif Fd == 23 or Fd == 24 then
  152. Rank = "D+"
  153. elseif Fd == 25 or Fd == 26 then
  154. Rank = "C-"
  155. elseif Fd == 27 or Fd == 28 then
  156. Rank = "C"
  157. elseif Fd == 29 or Fd == 30 then
  158. Rank = "C+"
  159. elseif Fd == 31 or Fd == 32 then
  160. Rank = "B-"
  161. elseif Fd == 33 or Fd == 34 then
  162. Rank = "B"
  163. elseif Fd == 35 or Fd == 36 then
  164. Rank = "B+"
  165. elseif Fd == 37 or Fd == 38 then
  166. Rank = "A-"
  167. elseif Fd == 39 or Fd == 40 then
  168. Rank = "A"
  169. elseif Fd == 41 or Fd == 42 then
  170. Rank = "A+"
  171. elseif Fd == 43 or Fd == 44 or Fd == 45 or Fd == 46 then
  172. Rank = "S"
  173. elseif Fd >= 47 and Fd <= 80 then
  174. Rank = "SS"
  175. elseif Fd > 80 and Fd <= 125 then
  176. Rank = "SS+"
  177. elseif Fd > 125 and Fd <= 200 then
  178. Rank = "Barely possible"
  179. elseif Fd > 200 and Fd <= 299 then
  180. Rank = "Impossible"
  181. elseif Fd > 299 and Fd < 399 then
  182. Rank = "Death"
  183. elseif Fd >= 400 then
  184. Rank = "God"
  185. end
  186. Player.QuestDifficulty.Value = Fd
  187. x.Difficulty.Text = "Difficulty: " ..Rank
  188. Player.Progress.Value = 1
  189. stuff = Player:GetChildren()
  190. for i = 1, #stuff do
  191. if stuff[i].ClassName == "StringValue" then
  192. Player:SaveString(stuff[i].Name, stuff[i].Value)
  193. Run.Stepped:wait()
  194. elseif stuff[i].ClassName == "IntValue" then
  195. Player:SaveNumber(stuff[i].Name, stuff[i].Value)
  196. Run.Stepped:wait()
  197. end
  198. end
  199. elseif Player.Progress.Value == 1 then
  200. --LOAD QUEST
  201. Note = game.SoundService.Note:clone()
  202. Note.Parent = Player.PlayerGui
  203. x = Note.Paper
  204. result = Player.Goal.Value
  205. i = Player.QuestThrase.Value
  206. if i == 1 then
  207. x.Ammount.Text = "Defeat " ..result
  208. Player.QuestThrase.Value = 1
  209. elseif i == 2 then
  210. x.Ammount.Text = "Destroy " ..result
  211. Player.QuestThrase.Value = 2
  212. elseif i == 3 then
  213. x.Ammount.Text = "Wipe out " ..result
  214. Player.QuestThrase.Value = 3
  215. elseif i == 4 then
  216. x.Ammount.Text = "Kill " ..result
  217. Player.QuestThrase.Value = 4
  218. elseif i == 5 then
  219. x.Ammount.Text = "Anihalate " ..result
  220. Player.QuestThrase.Value = 5
  221. end
  222. Fd = Player.QuestDifficulty.Value
  223. if Fd == 1 or Fd == 2 then
  224. Rank = "G-"
  225. elseif Fd == 3 or Fd == 4 then
  226. Rank = "G"
  227. elseif Fd == 5 or Fd == 6 then
  228. Rank = "G+"
  229. elseif Fd == 7 or Fd == 8 then
  230. Rank = "F-"
  231. elseif Fd == 9 or Fd == 10 then
  232. Rank = "F"
  233. elseif Fd == 11 or Fd == 12 then
  234. Rank = "F+"
  235. elseif Fd == 13 or Fd == 14 then
  236. Rank = "E-"
  237. elseif Fd == 15 or Fd == 16 then
  238. Rank = "E"
  239. elseif Fd == 17 or Fd == 18 then
  240. Rank = "E+"
  241. elseif Fd == 19 or Fd == 20 then
  242. Rank = "D-"
  243. elseif Fd == 21 or Fd == 22 then
  244. Rank = "D"
  245. elseif Fd == 23 or Fd == 24 then
  246. Rank = "D+"
  247. elseif Fd == 25 or Fd == 26 then
  248. Rank = "C-"
  249. elseif Fd == 27 or Fd == 28 then
  250. Rank = "C"
  251. elseif Fd == 29 or Fd == 30 then
  252. Rank = "C+"
  253. elseif Fd == 31 or Fd == 32 then
  254. Rank = "B-"
  255. elseif Fd == 33 or Fd == 34 then
  256. Rank = "B"
  257. elseif Fd == 35 or Fd == 36 then
  258. Rank = "B+"
  259. elseif Fd == 37 or Fd == 38 then
  260. Rank = "A-"
  261. elseif Fd == 39 or Fd == 40 then
  262. Rank = "A"
  263. elseif Fd == 41 or Fd == 42 then
  264. Rank = "A+"
  265. elseif Fd == 43 or Fd == 44 or Fd == 45 or Fd == 46 then
  266. Rank = "S"
  267. elseif Fd >= 47 and Fd <= 80 then
  268. Rank = "SS"
  269. elseif Fd > 80 and Fd <= 125 then
  270. Rank = "SS+"
  271. elseif Fd > 125 and Fd <= 200 then
  272. Rank = "Barely possible"
  273. elseif Fd > 200 and Fd <= 299 then
  274. Rank = "Impossible"
  275. elseif Fd > 299 and Fd < 399 then
  276. Rank = "Death"
  277. elseif Fd >= 400 then
  278. Rank = "God"
  279. end
  280. x.Task.Text = Player.NPC.Value
  281. x.Difficulty.Text = "Difficulty: " ..Rank
  282. end
  283. end
  284. end
  285.  
  286.  
  287.  
  288. script.Parent.ClickDetector.MouseClick:connect(Quests)
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311. function Quests2(Playero)
  312. if game.Players:FindFirstChild(Playero.Parent.Name) then
  313. Player = game.Players:FindFirstChild(Playero.Parent.Name)
  314.  
  315. player = Player
  316. if player.Character:FindFirstChild("QB") == nil then
  317. QB = Instance.new("IntValue", Player.Character)
  318. QB.Name = "QB"
  319. game.Debris:AddItem(QB, 10)
  320. if player.Progress.Value == 0 then
  321. game:GetService("Chat"):Chat(game.Workspace.Azarif.Head,"You haven't taken a request " ..player.Name ..".")
  322. elseif player.Progress.Value == 1 then
  323. if player.Kills.Value < player.Goal.Value then
  324. aleft = player.Goal.Value -player.Kills.Value
  325. game:GetService("Chat"):Chat(game.Workspace.Azarif.Head,"You still have " ..aleft .." " ..player.NPC.Value .." remaining.")
  326. elseif player.Kills.Value >= player.Goal.Value then
  327. if player.QuestDifficulty.Value < 40 then
  328. game:GetService("Chat"):Chat(game.Workspace.Azarif.Head,"Good work " ..player.Name)
  329. elseif player.QuestDifficulty.Value > 40 then
  330. if player.QuestDifficulty.Value <= 100 then
  331. game:GetService("Chat"):Chat(game.Workspace.Azarif.Head,"Good work " ..player.Name .." that request was quite a challenging one.")
  332. elseif player.QuestDifficulty.Value >= 101 then
  333. game:GetService("Chat"):Chat(game.Workspace.Azarif.Head,"Good work " ..player.Name ..", that request was very difficult.")
  334. end
  335. end
  336. wait(1.5)
  337. Reward = player.QuestDifficulty.Value
  338. game:GetService("Chat"):Chat(game.Workspace.Azarif.Head,"The reward is " ..Reward .." Drelch.")
  339. player.Progress.Value = 0
  340. player.QuestDifficulty.Value = 0
  341. player.Kills.Value = 0
  342. player.Goal.Value = ""
  343. player.QuestThrase.Value = ""
  344. player.NPC.Value = ""
  345. player.Quest.Value = player.Quest.Value +1
  346. player.Drel.Value = player.Drel.Value +Reward
  347. player.Progress.Value = 0
  348. player:SaveNumber("Progress", player.Progress.Value)
  349. player:SaveNumber("Drel", player.Drel.Value)
  350. player:SaveNumber("Quest", player.Quest.Value)
  351. player:SaveString("NPC", player.NPC.Value)
  352. player:SaveNumber("QuestThrase", player.QuestThrase.Value)
  353. player:SaveNumber("Goal", Player.Goal.Value)
  354. player:SaveNumber("Kills", Player.Kills.Value)
  355. player.SaveNumber("QuestDifficulty", Player.QuestDifficulty.Value)
  356.  
  357. end
  358. end
  359. end
  360.  
  361.  
  362. print(Player)
  363. local Player = Player
  364. if Player.PlayerGui:FindFirstChild("Note") == nil then
  365.  
  366. if Player.Progress.Value == 0 then
  367. --NEW QUEST
  368.  
  369. Note = game.SoundService.Note:clone()
  370. Note.Parent = Player.PlayerGui
  371. x = Note.Paper
  372. min = 1
  373. max = 1
  374. min = min +Player.Quest.Value /20
  375. if min >= 10 then
  376. min = 10
  377. end
  378. min = math.floor(min)
  379. max = max +Player.Quest.Value /8
  380. max = math.floor(max)
  381. if max >= 20 then
  382. max = 20
  383. end
  384. i = math.random(1,5)
  385. result = math.random(min, max)
  386. Difficulty = math.floor(result)
  387. if i == 1 then
  388. x.Ammount.Text = "Defeat " ..result
  389. Player.QuestThrase.Value = 1
  390. elseif i == 2 then
  391. x.Ammount.Text = "Destroy " ..result
  392. Player.QuestThrase.Value = 2
  393. elseif i == 3 then
  394. x.Ammount.Text = "Wipe out " ..result
  395. Player.QuestThrase.Value = 3
  396. elseif i == 4 then
  397. x.Ammount.Text = "Kill " ..result
  398. Player.QuestThrase.Value = 4
  399. elseif i == 5 then
  400. x.Ammount.Text = "Anihalate " ..result
  401. Player.QuestThrase.Value = 5
  402. end
  403. Player.Kills.Value = 0
  404. Player.Goal.Value = result
  405. Tasks = {"Lightball"}
  406. if Player.Quest.Value >= 2 then
  407. table.insert(Tasks, "Sandball")
  408. end
  409. if Player.Quest.Value >= 5 then
  410. table.insert(Tasks, "Earthball")
  411. end
  412. if Player.Quest.Value >= 7 then
  413. table.insert(Tasks, "Grassball")
  414. end
  415. if Player.Quest.Value >= 9 then
  416. table.insert(Tasks, "Treetroll")
  417. end
  418. if Player.Quest.Value >= 12 then
  419. table.insert(Tasks, "Rockball")
  420. end
  421. if Player.Quest.Value >= 14 then
  422. table.insert(Tasks, "Waterball")
  423. end
  424. if Player.Quest.Value >= 16 then
  425. table.insert(Tasks, "Troll")
  426. end
  427. if Player.Quest.Value >= 25 then
  428. table.insert(Tasks, "Boulderball")
  429. end
  430. if Player.Quest.Value >= 32 then
  431. table.insert(Tasks, "Flamuga")
  432. end
  433. if Player.Quest.Value >= 50 then
  434. table.insert(Tasks, "Dasha")
  435. end
  436. if Player.Quest.Value >= 75 then
  437. table.insert(Tasks, "Giant")
  438. end
  439. if Player.Quest.Value >= 100 then
  440. table.insert(Tasks, "Iceuron")
  441. end
  442. if Player.Quest.Value >= 150 then
  443. table.insert(Tasks, "Mizugame")
  444. end
  445. i = math.random(1,#Tasks)
  446. x.Task.Text = Tasks[i]
  447. Player.NPC.Value = Tasks[i]
  448. Difadd = 0
  449. if Player.NPC.Value == "Lightball" then
  450. Difadd = 1
  451. elseif Player.NPC.Value == "Sandball" then
  452. Difadd = 2
  453. elseif Player.NPC.Value == "Earthball" then
  454. Difadd = 3
  455. elseif Player.NPC.Value == "Grassball" then
  456. Difadd = 4
  457. elseif Player.NPC.Value == "Treetroll" then
  458. Difadd = 5
  459. elseif Player.NPC.Value == "Rockball" then
  460. Difadd = 6
  461. elseif Player.NPC.Value == "Waterball" then
  462. Difadd = 7
  463. elseif Player.NPC.Value == "Troll" then
  464. Difadd = 8
  465. elseif Player.NPC.Value == "Boulderball" then
  466. Difadd = 9
  467. elseif Player.NPC.Value == "Flamuga" then
  468. Difadd = 10
  469. elseif Player.NPC.Value == "Dasha" then
  470. Difadd = 14
  471. elseif Player.NPC.Value == "Giant" then
  472. Difadd = 17
  473. elseif Player.NPC.Value == "Iceuron" then
  474. Difadd = 22
  475. elseif Player.NPC.Value == "Mizugame" then
  476. Difadd = 26
  477. end
  478. difb = 1
  479. difc = Difadd /30
  480. difd = 1 *Difadd
  481. if difd < 1 then
  482. difd = 1
  483. end
  484. Difficulty = Difficulty *difd
  485. math.floor(Difficulty)
  486. Fd = Difficulty +Difadd
  487. if Fd == 1 or Fd == 2 then
  488. Rank = "G-"
  489. elseif Fd == 3 or Fd == 4 then
  490. Rank = "G"
  491. elseif Fd == 5 or Fd == 6 then
  492. Rank = "G+"
  493. elseif Fd == 7 or Fd == 8 then
  494. Rank = "F-"
  495. elseif Fd == 9 or Fd == 10 then
  496. Rank = "F"
  497. elseif Fd == 11 or Fd == 12 then
  498. Rank = "F+"
  499. elseif Fd == 13 or Fd == 14 then
  500. Rank = "E-"
  501. elseif Fd == 15 or Fd == 16 then
  502. Rank = "E"
  503. elseif Fd == 17 or Fd == 18 then
  504. Rank = "E+"
  505. elseif Fd == 19 or Fd == 20 then
  506. Rank = "D-"
  507. elseif Fd == 21 or Fd == 22 then
  508. Rank = "D"
  509. elseif Fd == 23 or Fd == 24 then
  510. Rank = "D+"
  511. elseif Fd == 25 or Fd == 26 then
  512. Rank = "C-"
  513. elseif Fd == 27 or Fd == 28 then
  514. Rank = "C"
  515. elseif Fd == 29 or Fd == 30 then
  516. Rank = "C+"
  517. elseif Fd == 31 or Fd == 32 then
  518. Rank = "B-"
  519. elseif Fd == 33 or Fd == 34 then
  520. Rank = "B"
  521. elseif Fd == 35 or Fd == 36 then
  522. Rank = "B+"
  523. elseif Fd == 37 or Fd == 38 then
  524. Rank = "A-"
  525. elseif Fd == 39 or Fd == 40 then
  526. Rank = "A"
  527. elseif Fd == 41 or Fd == 42 then
  528. Rank = "A+"
  529. elseif Fd == 43 or Fd == 44 or Fd == 45 or Fd == 46 then
  530. Rank = "S"
  531. elseif Fd >= 47 and Fd <= 80 then
  532. Rank = "SS"
  533. elseif Fd > 80 and Fd <= 125 then
  534. Rank = "SS+"
  535. elseif Fd > 125 and Fd <= 200 then
  536. Rank = "Barely possible"
  537. elseif Fd > 200 and Fd <= 299 then
  538. Rank = "Impossible"
  539. elseif Fd > 299 and Fd < 399 then
  540. Rank = "Death"
  541. elseif Fd >= 400 then
  542. Rank = "God"
  543. end
  544. Player.QuestDifficulty.Value = Fd
  545. x.Difficulty.Text = "Difficulty: " ..Rank
  546. Player.Progress.Value = 1
  547. stuff = Player:GetChildren()
  548. for i = 1, #stuff do
  549. if stuff[i].ClassName == "StringValue" then
  550. Player:SaveString(stuff[i].Name, stuff[i].Value)
  551. Run.Stepped:wait()
  552. elseif stuff[i].ClassName == "IntValue" then
  553. Player:SaveNumber(stuff[i].Name, stuff[i].Value)
  554. Run.Stepped:wait()
  555. end
  556. end
  557. elseif Player.Progress.Value == 1 then
  558. --LOAD QUEST
  559. Note = game.SoundService.Note:clone()
  560. Note.Parent = Player.PlayerGui
  561. x = Note.Paper
  562. result = Player.Goal.Value
  563. i = Player.QuestThrase.Value
  564. if i == 1 then
  565. x.Ammount.Text = "Defeat " ..result
  566. Player.QuestThrase.Value = 1
  567. elseif i == 2 then
  568. x.Ammount.Text = "Destroy " ..result
  569. Player.QuestThrase.Value = 2
  570. elseif i == 3 then
  571. x.Ammount.Text = "Wipe out " ..result
  572. Player.QuestThrase.Value = 3
  573. elseif i == 4 then
  574. x.Ammount.Text = "Kill " ..result
  575. Player.QuestThrase.Value = 4
  576. elseif i == 5 then
  577. x.Ammount.Text = "Anihalate " ..result
  578. Player.QuestThrase.Value = 5
  579. end
  580. Fd = Player.QuestDifficulty.Value
  581. if Fd == 1 or Fd == 2 then
  582. Rank = "G-"
  583. elseif Fd == 3 or Fd == 4 then
  584. Rank = "G"
  585. elseif Fd == 5 or Fd == 6 then
  586. Rank = "G+"
  587. elseif Fd == 7 or Fd == 8 then
  588. Rank = "F-"
  589. elseif Fd == 9 or Fd == 10 then
  590. Rank = "F"
  591. elseif Fd == 11 or Fd == 12 then
  592. Rank = "F+"
  593. elseif Fd == 13 or Fd == 14 then
  594. Rank = "E-"
  595. elseif Fd == 15 or Fd == 16 then
  596. Rank = "E"
  597. elseif Fd == 17 or Fd == 18 then
  598. Rank = "E+"
  599. elseif Fd == 19 or Fd == 20 then
  600. Rank = "D-"
  601. elseif Fd == 21 or Fd == 22 then
  602. Rank = "D"
  603. elseif Fd == 23 or Fd == 24 then
  604. Rank = "D+"
  605. elseif Fd == 25 or Fd == 26 then
  606. Rank = "C-"
  607. elseif Fd == 27 or Fd == 28 then
  608. Rank = "C"
  609. elseif Fd == 29 or Fd == 30 then
  610. Rank = "C+"
  611. elseif Fd == 31 or Fd == 32 then
  612. Rank = "B-"
  613. elseif Fd == 33 or Fd == 34 then
  614. Rank = "B"
  615. elseif Fd == 35 or Fd == 36 then
  616. Rank = "B+"
  617. elseif Fd == 37 or Fd == 38 then
  618. Rank = "A-"
  619. elseif Fd == 39 or Fd == 40 then
  620. Rank = "A"
  621. elseif Fd == 41 or Fd == 42 then
  622. Rank = "A+"
  623. elseif Fd == 43 or Fd == 44 or Fd == 45 or Fd == 46 then
  624. Rank = "S"
  625. elseif Fd >= 47 and Fd <= 80 then
  626. Rank = "SS"
  627. elseif Fd > 80 and Fd <= 125 then
  628. Rank = "SS+"
  629. elseif Fd > 125 and Fd <= 200 then
  630. Rank = "Barely possible"
  631. elseif Fd > 200 and Fd <= 299 then
  632. Rank = "Impossible"
  633. elseif Fd > 299 and Fd < 399 then
  634. Rank = "Death"
  635. elseif Fd >= 400 then
  636. Rank = "God"
  637. end
  638. x.Task.Text = Player.NPC.Value
  639. x.Difficulty.Text = "Difficulty: " ..Rank
  640. end
  641. end
  642. end
  643. end
  644.  
  645. script.Parent.Touched:connect(Quests2)
  646.  
  647. script.Parent.ClickDetector.MouseClick:connect(Quests)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement