Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local Track = game.Workspace.TrackBand
  3. local G = Track:FindFirstChild("1")
  4. local R = Track:FindFirstChild("2")
  5. local B = Track:FindFirstChild("3")
  6. local Y = Track:FindFirstChild("4")
  7. local S = Track:FindFirstChild("5")
  8. local YVal = G.CFrame.Y
  9. local tbl_2BA00048 =
  10. {
  11. "Green",
  12. "A"
  13. }
  14. local tbl_main =
  15. {
  16. tbl_2BA00048,
  17. 8
  18. }
  19. game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(tbl_main))
  20. local tbl_2BA00048 =
  21. {
  22. "Red",
  23. "S"
  24. }
  25. local tbl_main =
  26. {
  27. tbl_2BA00048,
  28. 8
  29. }
  30. game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(tbl_main))
  31. local tbl_2BA00048 =
  32. {
  33. "Blue",
  34. "K"
  35. }
  36. local tbl_main =
  37. {
  38. tbl_2BA00048,
  39. 8
  40. }
  41. game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(tbl_main))
  42. local tbl_2BA00048 =
  43. {
  44. "Yellow",
  45. "L"
  46. }
  47. local tbl_main =
  48. {
  49. tbl_2BA00048,
  50. 8
  51. }
  52. game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(tbl_main))
  53. local tbl_2BA00048 =
  54. {
  55. "Orange",
  56. "Space"
  57. }
  58. local tbl_main =
  59. {
  60. tbl_2BA00048,
  61. 8
  62. }
  63. game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(tbl_main))
  64. wait(.5)
  65. local key1 = plr.Controls.Green
  66. local key2 = plr.Controls.Red
  67. local key3 = plr.Controls.Blue
  68. local key4 = plr.Controls.Yellow
  69. local key5 = plr.Controls.Orange
  70. function HitKey(id)
  71. keypress(id)
  72. keyrelease(id)
  73. end
  74. local keys = {}
  75. while _G.on == 1 do
  76. game:GetService('RunService').Stepped:wait()
  77. for i,v in pairs(Track:GetChildren()) do
  78. if v and v:IsA("Part") and string.match(v.Name,"G") and v.CFrame.Y >= YVal - 0.0105 then
  79. local key = string.sub(v.Name,1,1)
  80. if key == "1" then
  81. HitKey(68)
  82. elseif key == "2" then
  83. HitKey(70)
  84. elseif key == "3" then
  85. HitKey(74)
  86. elseif key == "4" then
  87. HitKey(75)
  88. elseif key == "5" then
  89. HitKey(32)
  90. end
  91. table.insert(keys,v)
  92. elseif v and v:IsA("Part") and string.match(v.Name,"5G") and v.CFrame.Z <= S.CFrame.Z + 1 then
  93. HitKey(32)
  94. table.insert(keys,v)
  95. end
  96. end
  97. if #keys > 0 then
  98. wait()
  99. for a,b in pairs(keys) do
  100. b:Destroy()
  101. end
  102. end
  103. keys = {}
  104. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement