Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local Track = game.Workspace.TrackBand
- local G = Track:FindFirstChild("1")
- local R = Track:FindFirstChild("2")
- local B = Track:FindFirstChild("3")
- local Y = Track:FindFirstChild("4")
- local S = Track:FindFirstChild("5")
- local YVal = G.CFrame.Y
- local tbl_2BA00048 =
- {
- "Green",
- "A"
- }
- local tbl_main =
- {
- tbl_2BA00048,
- 8
- }
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(tbl_main))
- local tbl_2BA00048 =
- {
- "Red",
- "S"
- }
- local tbl_main =
- {
- tbl_2BA00048,
- 8
- }
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(tbl_main))
- local tbl_2BA00048 =
- {
- "Blue",
- "K"
- }
- local tbl_main =
- {
- tbl_2BA00048,
- 8
- }
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(tbl_main))
- local tbl_2BA00048 =
- {
- "Yellow",
- "L"
- }
- local tbl_main =
- {
- tbl_2BA00048,
- 8
- }
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(tbl_main))
- local tbl_2BA00048 =
- {
- "Orange",
- "Space"
- }
- local tbl_main =
- {
- tbl_2BA00048,
- 8
- }
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer(unpack(tbl_main))
- wait(.5)
- local key1 = plr.Controls.Green
- local key2 = plr.Controls.Red
- local key3 = plr.Controls.Blue
- local key4 = plr.Controls.Yellow
- local key5 = plr.Controls.Orange
- function HitKey(id)
- keypress(id)
- keyrelease(id)
- end
- local keys = {}
- while _G.on == 1 do
- game:GetService('RunService').Stepped:wait()
- for i,v in pairs(Track:GetChildren()) do
- if v and v:IsA("Part") and string.match(v.Name,"G") and v.CFrame.Y >= YVal - 0.0105 then
- local key = string.sub(v.Name,1,1)
- if key == "1" then
- HitKey(68)
- elseif key == "2" then
- HitKey(70)
- elseif key == "3" then
- HitKey(74)
- elseif key == "4" then
- HitKey(75)
- elseif key == "5" then
- HitKey(32)
- end
- table.insert(keys,v)
- elseif v and v:IsA("Part") and string.match(v.Name,"5G") and v.CFrame.Z <= S.CFrame.Z + 1 then
- HitKey(32)
- table.insert(keys,v)
- end
- end
- if #keys > 0 then
- wait()
- for a,b in pairs(keys) do
- b:Destroy()
- end
- end
- keys = {}
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement