Run it
Copy the script and paste it into your executor.
-- SETTINGS --
local collectibleNames = {"Pear", "Banana", "Seed"}
local autoCollect = false
-- SERVICES --
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local root = character:WaitForChild("HumanoidRootPart")
local Workspace = game:GetService("Workspace")
-- GUI SETUP --
ScreenGui = .(, .CoreGui)
ScreenGui.Name =
button = .(, ScreenGui)
button.Size = .(, , , )
button.Position = .(, , , )
button.BackgroundColor3 = .(, , )
button.Text =
button.TextSize =
button.TextColor3 = .(, , )
button.BorderSizePixel =
button.Active =
button.Draggable =
(item)
_, keyword (collectibleNames)
.(item.Name):(.(keyword))
(item)
(()
item.CFrame = root.CFrame + .(, , )
)
.(()
autoCollect
_, obj (Workspace:())
obj:() (obj)
(obj)
.()
)
Workspace.DescendantAdded:((obj)
obj:() (obj)
.() autoCollect root
(obj)
)
button.MouseButton1Click:(()
autoCollect = autoCollect
button.Text = .. (autoCollect )
button.BackgroundColor3 = autoCollect .(, , ) .(, , )
)
Universal