How do I make an auto collect cash gamepass for my tycoon?

Show us the droppers code, that would be helpful :+1:

1 Like

image

That is the code inside one of the droppers (Dropper 1)

If you have some kind of cash register, bank, or anything, show us that, maybe you could make auto collect from basic collect script if you know what i mean.

What do you mean by cash register or bank?

Could you format it correctly by using the three backticks (```)

![image|690x373](upload://8pPNSyeRNOuNmLO0b7IFCANbTJy.png)

I did that wrong wait

image

It’s a screenshot thats why it wont work

wait(2)
workspace:WaitForChild(“PartStorage”)

while true do
wait(2)
local part = Instance.new(“Part”,workspace.PartStorage)
part.BrickColor=script.Parent.Parent.Parent.DropColor.Value
part.Material=script.Parent.Parent.Parent.MaterialValue.Value
local cash = Instance.new(“IntValue”,part)
cash.Name = “Cash”
cash.Value = 25
part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.4,0)
part.FormFactor = “Custom”
part.Size=Vector3.new(1.2, 1.2, 1.2)
part.TopSurface = “Smooth”
part.BottomSurface = “Smooth”
game.Debris:AddItem(part,20)
end

This is the main script. This will hold the subscript.

wait(2)
workspace:WaitForChild(“PartStorage”)

while true do
wait(2)
local part = Instance.new(“Part”,workspace.PartStorage)
local script = Script.Script
script.Parent = part 
script.Disabled = false
part.BrickColor=script.Parent.Parent.Parent.DropColor.Value
part.Material=script.Parent.Parent.Parent.MaterialValue.Value
local cash = Instance.new(“IntValue”,part)
cash.Name = “Cash”
cash.Value = 25
part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.4,0)
part.FormFactor = “Custom”
part.Size=Vector3.new(1.2, 1.2, 1.2)
part.TopSurface = “Smooth”
part.BottomSurface = “Smooth”
game.Debris:AddItem(part,20)
end

We need to make a new script and put it inside this main script. Don’t forget to disable this subscript.

I assume you’ll find a way to get the associated player to the collection box

wait(19.5)
local player = etc -- I'll let you fill this up!
player.leaderstats.Cash.Value += Script.Parent.Cash.Value

Where do I put the gamepass ID so the game knows what gamepass it is?

Like place where you redeem cash

Wdym? Why would I put it where you redeem the cash

Nevermind, im stupid and did not understand

Im not 100% sure
But what about
if GamepassID == numberofyourgamepass then
(also local the GamepassID)

Thanks for that, but where do I put that

Not sure, as scripter im horrible, maybe try asking someone else there, sorry and good luck xD

What about this tutorial? How To Make An AUTOCOLLECT CASH Tycoon Script in ROBLOX Studio - YouTube

I already stated that the only video I could find tells you how to make the script in general, I’m trying to make it a gamepass. In witch this video wont help.

Anyways, can somebody help me with this I really don’t know what to do.