Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for _,i in pairs(game:GetService("Players"):GetChildren())do
- if i:FindFirstChild("leaderstats")~=nil then
- i.leaderstats:Destroy()
- end
- end
- function moneySetup(plr)
- local rebirthamount = 10000000
- local doubleamount = 50
- local tripleamount = 75
- local quadrupleamount = 100
- local quintupleamount = 125
- local sextupleamount = 150
- local septupleamount = 175
- local octupleamount = 200
- local gives = 1
- local debounce = false
- local ls = Instance.new("Folder",plr)
- ls.Name = "leaderstats"
- local money = Instance.new("NumberValue",ls)
- money.Name = "Money"
- money.Value = 15
- local rebirths = Instance.new("NumberValue",ls)
- rebirths.Name = "Rebirths"
- rebirths.Value = 0
- plr.Chatted:connect(function(msg)
- if string.sub(msg:lower(),1,1)=="."then
- local command = string.sub(msg:lower(),2)
- local command2 = string.sub(msg,2)
- if string.sub(command,1,7)=="donate "then
- if money.Value>9 then
- local sub = string.sub(command2,8)
- local p = game:GetService("Players"):FindFirstChild(sub)
- if p~=nil then
- money.Value = money.Value - 5
- p.leaderstats.Money.Value = p.leaderstats.Money.Value + 5
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://534538511"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- local moneys = Instance.new("Sound",p.PlayerGui)
- moneys.SoundId = "rbxassetid://534538511"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- end
- elseif money.Value<10 then
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://676289384"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- end
- end
- if string.sub(command,1,4)=="buy "then
- local sub = string.sub(command,5)
- if sub=="double"then
- if money.Value>(doubleamount-1) then
- money.Value = money.Value - doubleamount
- gives = gives * 2
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://534538511"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- elseif money.Value<doubleamount then
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://676289384"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- end
- end
- if sub=="triple"then
- if money.Value>(tripleamount-1) then
- money.Value = money.Value - tripleamount
- gives = gives * 3
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://534538511"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- elseif money.Value<tripleamount then
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://676289384"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- end
- end
- if sub=="quadruple"then
- if money.Value>(quadrupleamount-1) then
- money.Value = money.Value - quadrupleamount
- gives = gives * 4
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://534538511"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- elseif money.Value<quadrupleamount then
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://676289384"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- end
- end
- if sub=="quintuple"then
- if money.Value>(quintupleamount-1) then
- money.Value = money.Value - quintupleamount
- gives = gives * 5
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://534538511"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- elseif money.Value<quintupleamount then
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://676289384"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- end
- end
- if sub=="sextuple"then
- if money.Value>(sextupleamount-1) then
- money.Value = money.Value - sextupleamount
- gives = gives * 6
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://534538511"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- elseif money.Value<sextupleamount then
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://676289384"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- end
- end
- if sub=="septuple"then
- if money.Value>(septupleamount-1) then
- money.Value = money.Value - septupleamount
- gives = gives * 7
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://534538511"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- elseif money.Value<septupleamount then
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://676289384"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- end
- end
- if sub=="octuple"then
- if money.Value>(octupleamount-1) then
- money.Value = money.Value - octupleamount
- gives = gives * 8
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://534538511"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- elseif money.Value<octupleamount then
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://676289384"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- end
- end
- end
- if command=="rebirth"then
- if money.Value>(rebirthamount-1) then
- money.Value = 15
- rebirths.Value = rebirths.Value + 1
- gives = (rebirths.Value + 1)
- doubleamount = doubleamount + 50
- tripleamount = tripleamount + 75
- quadrupleamount = quadrupleamount + 100
- quintupleamount = quintupleamount + 125
- sextupleamount = sextupleamount + 150
- septupleamount = septupleamount + 175
- octupleamount = octupleamount + 200
- rebirthamount = rebirthamount + 10000000
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://534538511"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- elseif money.Value<rebirthamount then
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://676289384"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- end
- end
- end
- end)
- plr.CharacterAdded:connect(function(char)
- char.Humanoid.Running:connect(function()
- if debounce == false then
- debounce = true
- money.Value = money.Value + gives
- wait(1)
- debounce = false
- end
- end)
- char.Humanoid.Jumping:connect(function()
- if debounce == false then
- debounce = true
- money.Value = money.Value + gives
- wait(1)
- debounce = false
- end
- end)
- end)
- local t = coroutine.wrap(function()
- while true do
- if rebirthamount>1000000000 then
- if money>rebirthamount then
- money.Value = 15
- rebirths.Value = rebirths.Value + 1
- gives = (rebirths.Value + 1)
- doubleamount = doubleamount + 50
- tripleamount = tripleamount + 75
- quadrupleamount = quadrupleamount + 100
- quintupleamount = quintupleamount + 125
- sextupleamount = sextupleamount + 150
- septupleamount = septupleamount + 175
- octupleamount = octupleamount + 200
- rebirthamount = rebirthamount + 10000000
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://534538511"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- end
- else
- if money>1000000000 then
- money.Value = 15
- rebirths.Value = rebirths.Value + 1
- gives = (rebirths.Value + 1)
- doubleamount = doubleamount + 50
- tripleamount = tripleamount + 75
- quadrupleamount = quadrupleamount + 100
- quintupleamount = quintupleamount + 125
- sextupleamount = sextupleamount + 150
- septupleamount = septupleamount + 175
- octupleamount = octupleamount + 200
- rebirthamount = rebirthamount + 10000000
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://534538511"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- end
- end
- wait()
- end
- end)
- t()
- end
- game:GetService("Players").PlayerAdded:connect(function(pl)
- moneySetup(pl)
- end)
- for _,i in pairs(game:GetService("Players"):GetChildren())do
- moneySetup(i)
- wait()
- i:LoadCharacter()
- end
- function secsTo(str1,num1)
- if str1:lower()=="femtosecond"then
- return num1/1000000000000000
- end
- if str1:lower()=="picosecond"then
- return num1/1000000000000
- end
- if str1:lower()=="nanosecond"then
- return num1/1000000000
- end
- if str1:lower()=="microsecond"then
- return num1/1000000
- end
- if str1:lower()=="millisecond"then
- return num1/1000
- end
- if str1:lower()=="second"then
- return num1*1
- end
- if str1:lower()=="minute"then
- return num1*60
- end
- if str1:lower()=="hour"then
- return num1*60*60
- end
- if str1:lower()=="day"then
- return num1*60*60*24
- end
- if str1:lower()=="week"then
- return num1*60*60*24*7
- end
- if str1:lower()=="month"then
- return (num1*60*60*24*7*4)+2
- end
- if str1:lower()=="year"then
- return ((num1*60*60*24*7*4)+2)*12*1
- end
- if str1:lower()=="decade"then
- return ((num1*60*60*24*7*4)+2)*12*10
- end
- if str1:lower()=="century"then
- return ((num1*60*60*24*7*4)+2)*12*100
- end
- if str1:lower()=="millenium"then
- return ((num1*60*60*24*7*4)+2)*12*1000
- end
- end
- while true do
- wait(60)
- local amounts = {10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,100,100,100,100,100,100,100,100,100,100,100,250,250,250,250,250,250,250,500,500,500,500,500,500,1000,1000,1000,2500,2500,5000}
- local amount = amounts[math.random(1,#amounts)]
- local x = coroutine.wrap(function()
- local message = Instance.new("Message",workspace)
- message.Text = "A money boost has appeared! Get it before the others to recieve some money!"
- wait(5)
- message:Destroy()
- end)
- x()
- local f = coroutine.wrap(function()
- local part = Instance.new("Part",workspace)
- part.Name = "Boost"
- part.Size = Vector3.new(2,2,2)
- part.Position = Vector3.new(math.random(-200,200),50,math.random(-200,200))
- part.Shape = "Ball"
- part.Transparency = 0.55
- part.BrickColor = BrickColor.new("Electric blue")
- part.Touched:connect(function(ch)
- if ch.Parent.ClassName=="Model"then
- local plr = game:GetService("Players"):FindFirstChild(ch.Parent.Name)
- local char = ch.Parent
- if plr~=nil then
- part:Destroy()
- plr.leaderstats.Money.Value = plr.leaderstats.Money.Value + amount
- local moneys = Instance.new("Sound",plr.PlayerGui)
- moneys.SoundId = "rbxassetid://534538511"
- moneys.Volume = 99999999999999999999
- moneys:Play()
- end
- end
- end)
- end)
- f()
- end
Add Comment
Please, Sign In to add comment