ADVERTISEMENTREMOVE ADS
Game icon

Auto Collect All Coins

Subway Surfers
7 months ago
Script preview thumbnail
Script Preview

Description

New Script!
1. Auto Collect All Coins, Enable Or Disable

ADVERTISEMENTREMOVE ADS
41 Lines • 1.26 KiB
Raw
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
-- Create GUI button
local screenGui = Instance.new("ScreenGui", game.CoreGui)
screenGui.Name = "AutoTouchGui"
local button = Instance.new("TextButton", screenGui)
button.Text = "Enable Auto Collect Coins"
button.Size = UDim2.new(0, 150, 0, 50)
button.Position = UDim2.new(0.5, -75, 0.9, -25)
button.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
button.TextColor3 = Color3.new(1, 1, 1)
button.Font = Enum.Font.SourceSansBold
button.TextSize = 20
button.AutoButtonColor = true
-- Variable to control spam
local spamTouching = false
-- Function to simulate touch
local function simulateTouch(part)
firetouchinterest(hrp, part, 0)
firetouchinterest(hrp, part, 1)
end
-- Button click event
button.MouseButton1Click:Connect(function()
spamTouching = not spamTouching
button.Text = spamTouching and "Disable Auto Collect Coins" or "Enable Auto Collect Coins"
-- Spam loop
while spamTouching do
for _, part in ipairs(Workspace.Coins:GetChildren()) do
simulateTouch(part)
end
wait(2)
end
end)
ADVERTISEMENTREMOVE ADS

Comments

0 comments
to add a comment
Loading comments
ADVERTISEMENTREMOVE ADS