-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpiano bosta.lua
More file actions
67 lines (47 loc) · 1.49 KB
/
piano bosta.lua
File metadata and controls
67 lines (47 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--piano bosta
-- padero
if getgenv().STOP then getgenv().STOP() end
local input = 'input.shitballspiano'
assert(isfile(input),'cadê a porra do arquivo')
pcall(setfpscap, 9999)
--dps eu taco artificial heartbeat pra n precisar aumentar o fps
--o wait n é tão preciso em fps mais baixos
local http = game:GetService('HttpService')
local ran,data = pcall(http.JSONDecode,http,readfile(input))
if not ran then return print('tu cagou no arquivo brother') end
data['_'] = nil
local toignore = {
1
}
for _,v in ipairs(toignore) do data['track'..v] = nil end
local r = getsenv(game:GetService("Players").LocalPlayer.PlayerGui.PianoGui.Main).PlayNoteClient
print(r)
local function HOLD(key)
if key < 62 and key > 0 then r(key) end
end
local function RELEASE(key)
end
local stop = false
for _,v in pairs(data) do
task.spawn(function()
task.spawn(function()
for i,h in ipairs(v[1]) do
if stop then break end
for __,v in ipairs(h[2]) do
task.spawn(HOLD,v)
end
task.wait(h[1]-(v[1][math.max(1,i-1)][1]))
end
end)
task.spawn(function()
for i,h in ipairs(v[2]) do
if stop then break end
for __,v in ipairs(h[2]) do
task.spawn(RELEASE,v)
end
task.wait(h[1]-(v[2][math.max(1,i-1)][1]))
end
end)
end)
end
getgenv().STOP = function() stop = true print('stop')end