Is there anyway in this script to change the start money?
Asked by
8 years ago Edited 8 years ago
ya i know its a pretty long scirpt but i hope its somewhere inthere i can find where or you guys can find where start money is?
003 | local StatCategories = { } |
005 | local StatChanged = CreateSignal() |
006 | function AddStat(name, category, value) |
007 | if not StatCount [ category ] then |
008 | StatCount [ category ] = 1 |
010 | StatCount [ category ] = StatCount [ category ] + 1 |
012 | local stat = Instance.new( 'StringValue' ) |
014 | if value then stat.Value = value end |
015 | StatList [ name ] = stat |
016 | StatCategories [ name ] = category |
017 | table.insert(StatNames, name) |
018 | stat.Changed:connect( function () |
019 | StatChanged:fire(name, stat.Value) |
022 | function SetStat(name, value) |
023 | StatList [ name ] .Value = value |
025 | function EachStatSorted(f) |
026 | for _, name in pairs (StatNames) do |
031 | for name, stat in pairs (StatList) do |
036 | function UpdateGui(gui) |
037 | for name, stat in pairs (StatList) do |
038 | gui.MainFrame.StatsFrame [ name ] .Text = name.. ": " ..stat.Value |
042 | StatChanged:connect( function () |
043 | for _, player in pairs (game.Players:GetPlayers()) do |
044 | if PlayerData [ player ] and PlayerData [ player ] .Gui then |
045 | UpdateGui(PlayerData [ player ] .Gui) |
052 | local COOKIE_OVERLAY_TYPES = { |
053 | { name = "Touch Enabled" , description = "Touch Enabled Users" , color = Color 3. new( 0 , 0 , 1 ), appliesToPlayer = function (player) |
054 | local pingScript = script:FindFirstChild( 'TouchEnabledFor' .. player.Name) |
056 | return pingScript.Value |
061 | { name = "Friends" , description = "Friend's of Quenty" , color = Color 3. new( 0 , 1 , 0 ), appliesToPlayer = function (Player) |
062 | return Player:IsFriendsWith( 4397833 ); |
064 | { name = "Personal Admins" , description = "Quenty's Administrators in the game" , color = Color 3. new( 0 , 1 , 0 ), appliesToPlayer = function (Player) |
065 | return Player:IsFriendsWith( 27046451 ); |
069 | local CookieHistogram = CreateHistogram( 'CookieHistogram' , "Cash on leave" , "% of Users" , MEASURED_COOKIES, |
072 | end , COOKIE_OVERLAY_TYPES, "Cookie Data" ) |
073 | local CookieHistogram 2 = CreateHistogram( 'CookieHistogram' , "Cash on enter" , "% of Users" , MEASURED_COOKIES, |
076 | end , COOKIE_OVERLAY_TYPES, "Cookie Data" ) |
078 | table.insert(HISTOGRAMS, CookieHistogram) |
079 | table.insert(HISTOGRAMS, CookieHistogram 2 ) |
080 | local function setup(player) |
081 | print ( "Setup " ..player.Name) |
082 | local l = Instance.new( "IntValue" ,player) |
083 | l.Name = "leaderstats" |
084 | local Cookies = Instance.new( "NumberValue" ,l) |
085 | Cookies.Name = "Cash" |
087 | local function HandleItem(Item) |
089 | if Item:IsA( "IntValue" ) then |
090 | if Item.Name = = "Authorize" then |
091 | if Cookies.Value + Item.Value > = 0 then |
093 | Item.Name = "Authorized" ; |
094 | Cookies.Value = Cookies.Value + Item.Value; |
097 | Item.Name = "NotAuthorized" ; |
099 | elseif Item.Name = = "Add" then |
100 | Cookies.Value = Cookies.Value + Item.Value; |
104 | print ( "[Queue] - Unidentified " ..Item.Name.. " in leaderstats cookies" ) |
111 | local Updating = false ; |
112 | local function StartUpdate() |
115 | local Children = Cookies:GetChildren() |
116 | while #Children > 0 do |
117 | for _, Child in pairs (Children) do |
121 | Children = Cookies:GetChildren(); |
127 | Cookies.ChildAdded:connect( function (Item) |
131 | if player.Name = = "Player1" then |
132 | Cookies.Value = 100000000000 ; |
135 | local PlayerCookieSheet = GetPlayerCookieSheet(player) |
136 | if not PlayerCookieSheet then |
137 | PlayerCookieSheet = AssignPlayerCookieSheet(player) |
140 | local ShieldTime = Instance.new( "IntValue" ,player) |
141 | ShieldTime.Name = "ShieldTime" |
142 | ShieldTime.Value = 600 ; |
146 | if ShieldTime.Value > = 1 then |
147 | ShieldTime.Value = ShieldTime.Value - 1 |
148 | if ShieldTime.Value = = 0 then |
149 | PlayerCookieSheet.ShieldEnabled.Value = false ; |
158 | local UpgradeDataObjects = { } |
159 | local UpgradeData = Instance.new( "Configuration" , player) |
160 | UpgradeData.Name = "UpgradeCountData" ; |
161 | for _, Upgrade in pairs (ScriptRunningUpgrades) do |
162 | local UpgradeCount = Instance.new( "IntValue" , UpgradeData) |
163 | UpgradeCount.Name = Upgrade.Name |
164 | UpgradeCount.Value = 1 ; |
165 | UpgradeDataObjects [ #UpgradeDataObjects+ 1 ] = UpgradeCount |