Run it
Copy the script and paste it into your executor.
Players = :()
ReplicatedStorage = :()
UserInputService = :()
RunService = :()
StarterGui = :()
USE_TELEPORT =
TOGGLE_KEY = .KeyCode.F
LocalPlayer = Players.LocalPlayer
enabled =
collecting =
connections = {}
candyData = {}
toggleButton =
()
enabled =
toggleButton toggleButton.Parent
toggleButton:()
_, conn (connections)
conn conn.Connected
conn:()
.(connections)
.(candyData)
.CandyAutoCleanup =
()
.CandyAutoCleanup = Cleanup
()
LocalPlayer
()
CandyFolder = ReplicatedStorage:()
CandyFolder
()
Remote = CandyFolder:()
Remote
()
(, LocalPlayer.Name)
()
()
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.ZIndexBehavior = .ZIndexBehavior.Sibling
screenGui.Parent = :()
button = .()
button.Name =
button.Size = .(, , , )
button.Position = .(, , , )
button.BackgroundColor3 = .(, , )
button.TextColor3 = .(, , )
button.Font = .Font.SourceSansBold
button.TextSize =
button.Text =
button.Parent = screenGui
corner = .()
corner.CornerRadius = .(, )
corner.Parent = button
button
toggleButton = ()
()
.(connections, Remote.OnClientEvent:((event, data)
event ==
(data) ==
.(candyData)
_, candy (data)
candy candy.id
candyData[candy.id] = candy
event ==
(data) ==
_, candy (data)
candy candy.id
candyData[candy.id] = candy
(event == event == ) data data.id
candyData[data.id] =
))
.(connections, toggleButton.MouseButton1Click:(()
enabled = enabled
toggleButton.Text = .. (enabled )
toggleButton.BackgroundColor3 = enabled .(, , ) .(, , )
(, enabled )
))
.(connections, UserInputService.InputBegan:((input, gameProcessed)
gameProcessed
input.KeyCode == TOGGLE_KEY
enabled = enabled
toggleButton.Text = .. (enabled )
toggleButton.BackgroundColor3 = enabled .(, , ) .(, , )
(, enabled )
))
()
character = LocalPlayer.Character
character ,
character:(), character:()
(position)
_, hrp = ()
hrp
hrp.CFrame = .(position)
()
()
collecting
collecting =
list = {}
_, candy (candyData)
.(list, candy)
#list ==
collecting =
_, hrp = ()
hrp
collecting =
.(list, (a, b)
(hrp.Position - a.position).Magnitude < (hrp.Position - b.position).Magnitude
)
_, candy (list)
enabled
(candy.position)
()
collecting =
()
(()
()
LocalPlayer.Parent
()
(()
Remote:()
)
enabled collecting
()
(CollectAll)
()
()
)
()
()I got too lazy original script not mine i modified it to work