-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSPTSc
More file actions
36 lines (32 loc) · 975 Bytes
/
SPTSc
File metadata and controls
36 lines (32 loc) · 975 Bytes
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
getgenv().cAI = 1
local function sendAction(action)
local RE = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent")
RE:FireServer({action})
end
local function performActions(actions)
for i = 1, #actions do
sendAction(actions[i])
coroutine.yield()
end
end
local actions = {"+FS1", "+BT1", "+MS1", "+JF1", "+FS2"}
local co = coroutine.create(performActions)
while getgenv().AutoFarm do
local cA = actions[getgenv().cAI]
sendAction(cA)
wait(0.5)
printconsole("cAI: " .. getgenv().cAI .. ", current action: " .. cA, 0, 255, 0)
local actionsStr = ""
for i = 1, #actions do
actionsStr = actionsStr .. actions[i]
if i < #actions then
actionsStr = actionsStr .. ", "
end
end
printconsole("A: " .. actionsStr, 0, 255, 0)
getgenv().cAI = getgenv().cAI + 1
if getgenv().cAI > #actions then
getgenv().cAI = 1
end
coroutine.resume(co, actions)
end