Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local hiddenStickersFolder = game.Workspace:FindFirstChild("HiddenStickers")
- local tweenDuration = 10 -- Duration for the tween to complete
- local minRandomWait = 10 -- Minimum wait time before moving to a sticker
- local maxRandomWait = 120 -- Maximum wait time before moving to a sticker
- local clickWait = 0.5 -- Wait time between clicks while tweening
- local function randomWait(minSeconds, maxSeconds)
- wait(math.random(minSeconds, maxSeconds))
- end
- local function toggleClickDetectors(enabled)
- for _, part in ipairs(hiddenStickersFolder:GetChildren()) do
- local clickDetector = part:FindFirstChild("ClickDetector")
- if clickDetector and clickDetector:IsA("ClickDetector") then
- clickDetector.MaxActivationDistance = enabled and 5 or 0
- end
- end
- end
- local function toggleNoclip(enabled)
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- for _, part in ipairs(character:GetDescendants()) do
- if part:IsA("BasePart") then
- part.CanCollide = not enabled
- end
- end
- end
- local function tweenToPositionAndClick(player, part, clickDetector)
- local tweenService = game:GetService("TweenService")
- local humanoidRootPart = player.Character:WaitForChild("HumanoidRootPart")
- local tweenInfo = TweenInfo.new(tweenDuration, Enum.EasingStyle.Linear)
- local goal = { CFrame = CFrame.new(part.Position) }
- local tween = tweenService:Create(humanoidRootPart, tweenInfo, goal)
- tween:Play()
- tween.Completed:Wait()
- toggleNoclip(false)
- fireclickdetector(clickDetector)
- end
- local function collectStickers()
- local hiddenStickers = hiddenStickersFolder:GetChildren()
- if #hiddenStickers > 0 then
- for _, part in ipairs(hiddenStickers) do
- local clickDetector = part:FindFirstChild("ClickDetector")
- if clickDetector and clickDetector:IsA("ClickDetector") then
- randomWait(minRandomWait, maxRandomWait)
- toggleNoclip(true)
- local player = game.Players.LocalPlayer
- tweenToPositionAndClick(player, part, clickDetector)
- randomWait(3, 7)
- end
- end
- else
- warn("No parts found in HiddenStickers folder.")
- end
- end
- local function startCollecting()
- while true do
- if hiddenStickersFolder then
- collectStickers()
- else
- warn("HiddenStickers folder not found in Workspace.")
- break
- end
- randomWait(60, 120)
- end
- end
- startCollecting()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement