ADVERTISEMENTREMOVE ADS
Auto Collect Cash
9,798 views

Script Preview
Description
Keybind is " J "
Very cool and op auto collect for this game that I found. I wanted to make this into a whole like gui but kinda gave up on it.
ADVERTISEMENTREMOVE ADS
154 Lines • 2.57 KiB
Verified
-- uh yeah, minified version so no skidding
local a=game:GetService"Players"
local b=game:GetService"RunService"
local c=game:GetService"UserInputService"
local d=a.LocalPlayer
local e
local f={}
local g=0
local h
local i=false
local function findPlayerTycoon()
local j=workspace:FindFirstChild"Tycoons"
if not j then return nil end
for k,l in pairs(j:GetChildren())do
if l:GetAttribute"Owner"==d.Name then
return l
end
end
return nil
end
local function getCollectPart()
local j=findPlayerTycoon()
if not j then return nil end
local k=j:FindFirstChild"Base"and
j.Base:FindFirstChild"ATM 1"and
j.Base["ATM 1"]:FindFirstChild"bui"and
j.Base["ATM 1"].bui:FindFirstChild"ATM"and
j.Base["ATM 1"].bui.ATM:FindFirstChild"CollectPart"
return k
end
local function setupCollectPart()
local j=getCollectPart()
if not j then return false end
f.cframe=j.CFrame
f.size=j.Size
f.transparency=j.Transparency
f.canCollide=j.CanCollide
f.material=j.Material
f.color=j.Color
f.anchored=j.Anchored
f.rotation=j.Orientation
h=Instance.new"Part"
h.Name="CollectPart2"
h.Size=f.size
h.CFrame=f.cframe
h.Orientation=f.rotation
h.Transparency=f.transparency
h.CanCollide=false
h.Material=f.material
h.Color=f.color
h.Anchored=true
h.Parent=j.Parent
for k,l in pairs(j:GetChildren())do
if l:IsA"Decal"or l:IsA"Texture"or l:IsA"SurfaceGui"then
local m=l:Clone()
m.Parent=h
end
end
j.Size=Vector3.new(0.1,0.1,0.1)
j.Transparency=1
j.CanCollide=false
return true
end
local function restoreCollectPart()
local j=getCollectPart()
if not j then return end
j.CFrame=f.cframe
j.Size=f.size
j.Transparency=f.transparency
j.CanCollide=f.canCollide
j.Material=f.material
j.Color=f.color
j.Anchored=f.anchored
if h then
h:Destroy()
h=nil
end
end
local function microJitterCollectPart()
local j=getCollectPart()
if not j then return end
local k=d.Character
if not k then return end
local l=k:FindFirstChild"HumanoidRootPart"
if not l then return end
g=g+0.1
local m=math.cos(g)*0.5
local n=math.sin(g)*0.5
local o=math.sin(g*2)*0.3
j.Position=l.Position+Vector3.new(m,o+2,n)
end
local function toggleAutoCollect()
if i then
if e then
e:Disconnect()
e=nil
end
restoreCollectPart()
i=false
else
if setupCollectPart()then
e=b.Heartbeat:Connect(function()
microJitterCollectPart()
end)
i=true
else
warn"Could not find your tycoon"
end
end
end
c.InputBegan:Connect(function(j,k)
if k then return end
if j.KeyCode==Enum.KeyCode.J then
toggleAutoCollect()
end
end)
print"made by script.er"
ADVERTISEMENTREMOVE ADS
ADVERTISEMENTREMOVE ADS





Comments