Run it
Copy the script and paste it into your executor.
Players = :()
TweenService = :()
UserInputService = :()
Workspace = :()
player = Players.LocalPlayer
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.Parent = player:()
frame = .()
frame.Size = .(, , , )
frame.Position = .(, -, , )
frame.BackgroundColor3 = .(, , )
frame.BackgroundTransparency =
frame.BorderSizePixel =
frame.Active =
frame.Draggable =
frame.Parent = gui
.(, frame)
title = .(, frame)
title.Size = .(, , , )
title.BackgroundTransparency =
title.Text =
title.TextColor3 = .(, , )
title.Font = .Font.GothamBold
title.TextSize =
toggleFrame = .(, frame)
toggleFrame.Size = .(, , , )
toggleFrame.Position = .(, -, , )
toggleFrame.BackgroundColor3 = .(, , )
toggleFrame.BorderSizePixel =
.(, toggleFrame)
toggleCircle = .(, toggleFrame)
toggleCircle.Size = .(, , , )
toggleCircle.Position = .(, , , )
toggleCircle.BackgroundColor3 = .(, , )
.(, toggleCircle)
timerLabel = .(, frame)
timerLabel.Size = .(, , , )
timerLabel.Position = .(, , , )
timerLabel.BackgroundTransparency =
timerLabel.Text =
timerLabel.TextColor3 = .(, , )
timerLabel.Font = .Font.Code
timerLabel.TextSize =
goldLabel = .(, frame)
goldLabel.Size = .(, , , )
goldLabel.Position = .(, , , )
goldLabel.BackgroundTransparency =
goldLabel.Text =
goldLabel.TextColor3 = .(, , )
goldLabel.Font = .Font.GothamBold
goldLabel.TextSize =
statusLabel = .(, frame)
statusLabel.Size = .(, , , )
statusLabel.Position = .(, , , -)
statusLabel.BackgroundTransparency =
statusLabel.Text =
statusLabel.TextColor3 = .(, , )
statusLabel.Font = .Font.GothamBold
statusLabel.TextSize =
dragging, dragStart, startPos
frame.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPos = frame.Position
)
frame.InputChanged:((input)
dragging (input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch)
delta = input.Position - dragStart
frame.Position = .(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
)
userEnabled =
autoRunning =
goldCount =
startTime =
hrp =
humanoid =
()
char = player.Character player.CharacterAdded:()
hrp = char:()
humanoid = char:()
()
player.CharacterAdded:(()
.()
()
userEnabled
autoRunning =
startTime = .()
statusLabel.Text =
statusLabel.TextColor3 = .(, , )
.(waitForFullHealthAndScan)
)
(seconds)
h = .(seconds / )
m = .((seconds % ) / )
s = seconds %
.(, h, m, s)
(goldBar)
goldBar
p = goldBar:(, )
p p:() p
goldBar:(, )
(prompt)
prompt
ok = (()
(prompt.RequiresLineOfSight) == prompt.RequiresLineOfSight =
(prompt.MaxActivationDistance) == prompt.MaxActivationDistance =
(prompt)
)
ok
goldCount = goldCount +
goldLabel.Text = .. goldCount
ok
()
folder = :()
folder
_, obj (folder:())
prompt = (obj)
prompt prompt.Enabled
()
humanoid humanoid.Health < humanoid.MaxHealth
.()
statusLabel.Text =
.(waitForGoldAndStartFarm)
()
autoRunning ()
statusLabel.Text =
statusLabel.TextColor3 = .(, , )
.()
autoRunning ()
statusLabel.Text =
.()
.(scannerLoop)
()
noGoldCount =
autoRunning
folder = :()
folder
.()
goldList = {}
_, gb (folder:())
prompt = (gb)
prompt prompt.Enabled
part = gb.PrimaryPart gb:(, )
part hrp
dist = (part.Position - hrp.Position).Magnitude
.(goldList, {gold = gb, prompt = prompt, part = part, dist = dist})
#goldList ==
noGoldCount = noGoldCount +
statusLabel.Text = .. noGoldCount ..
statusLabel.TextColor3 = .(, , )
noGoldCount >=
statusLabel.Text =
.()
humanoid humanoid.Health =
.()
noGoldCount =
statusLabel.Text = .. #goldList ..
statusLabel.TextColor3 = .(, , )
.(goldList, (a, b) a.dist < b.dist )
_, entry (goldList)
autoRunning
gb, prompt, tpPart = entry.gold, entry.prompt, entry.part
hrp
hrp.CFrame = tpPart.CFrame + .(, , )
.()
(prompt)
.()
.()
(()
.()
autoRunning startTime >
timerLabel.Text = .. (.(.() - startTime))
)
(state)
userEnabled = state
state
autoRunning =
startTime = .()
statusLabel.Text =
statusLabel.TextColor3 = .(, , )
TweenService:(toggleFrame, TweenInfo.(), {BackgroundColor3 = .(, , )}):()
TweenService:(toggleCircle, TweenInfo.(), {Position = .(, -, , )}):()
.(scannerLoop)
autoRunning =
hrp hrp.Anchored =
statusLabel.Text =
statusLabel.TextColor3 = .(, , )
TweenService:(toggleFrame, TweenInfo.(), {BackgroundColor3 = .(, , )}):()
TweenService:(toggleCircle, TweenInfo.(), {Position = .(, , , )}):()
toggleFrame.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
( userEnabled)
)
UserInputService.InputBegan:((input, gpe)
gpe
input.KeyCode == .KeyCode.P
( userEnabled)
)
()Last Run