#Autocollect Gamepass

23 messages · Page 1 of 1 (latest)

normal cypress
#

I'm using a script from a kit for a tycoon, but I want to add a autocollect gamepass so "autocollect = true" only if they own the gamepass (id at the top).
script: local id = 88873831

local module = {
    
    --// Sound IDs \\--
    purchaseSound = 203785492,        --Sound(ID) that plays when a player purchases something successfully
    collectSound = 131886985,        --Sound(ID) that plays when a player collects their cash
    errorBuySound = 138090596,        --Sound(ID) that plays when a player tries to buy something they can't afford
    --// Button Settings \\--
    buttonsFadeIn = true,            --Boolean : Whether or not buttons fade in when unlocked
    buttonsFadeOut = true,            --Boolean : Whether or not buttons fade out when purchased
    fadeInTime = 0.5,                --Number : Duration (in seconds) for buttons to fade in when unlocked
    fadeOutTime = 0.5,                --Number : Duration (in seconds) for buttons to fade out when purchased
    buttonsChangeColor = true,        --Boolean : Whether or not buttons change color depending on if the player can afford them
    --// Steal Settings \\--
    stealing = false,                --Boolean : Whether or not players can steal cash from others
    stealPercent = 0.5,                --Number 0 - 1 : How much currency is stolen from a player (1 = 100%)
    stealCooldown = 120,            --Number : How long a player is protected (in seconds) after being stolen from 
    --// Data Settings \\--
    currencySaves = false,            --Boolean : Whether or not currency saves
    tycoonSaves = false,                --Boolean : Whether or not progress saves
    dataStoreName = 'Name',            --The name of the DataStore used to save cash and tycoon progress
    --// Miscellaneous \\--
    neutralTeamName = 'No Tycoon',    --Name of the team that players spawn on (if autoAssignTeams is false)
    currencyName = 'Cash',            --Name of the currency shown on the leaderboard
    dropLifeTime = 20,                --Number : How long parts have to reach the part collector (in seconds) before they are removed
    autoAssignTeams = false,        --Boolean : Whether or not players will automatically be assigned to a tycoon
    autoCollect = false                --Boolean : Whether cash will go straight to a player's balance or their Cash Collector
    
    --[[ 
    * A 'Boolean' is true / false
    
    Additional Information
    
    dropLifeTime is useful if parts fall off the conveyor or get 
    stuck. Anything above 120 seconds (2 minutes) is not recommended.
    
    Even if you aren't saving progress or cash, don't leave dataStoreName blank or
    the script won't work. Change the dataStoreName if you'd like to reset all data.
    
    Most scripts in this tycoon kit rely on this Module for information,
    so there is no need to change any code in any scripts except
    this one. Only change code if you know what you're doing.
    
    YouTube tutorial:
    https://www.youtube.com/watch?v=bYsIfHHoKWc&t=2s
    
    ]]--
    
}
return module```
polar geyser
#

yes this is hard but i know exactly how to do it

#

dm me

normal cypress
#

alr

normal cypress
#

anyone else that can help?

glacial glade
#

I cannot read this

#

Do this ^^

normal cypress
#

i add the lua then

#

ok

#

done

glacial glade
#

Ah, I don't mess with gamepasses

#

@magic steeple tag in

normal cypress
wary apex
#

Do you know if the module is required from a local or a server script?

normal cypress
wary apex
#

Do you have a link to the model?

magic steeple
normal cypress
#

But I’m trying to find out how to make it a gamepass