Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.30 KB | None | 0 0
  1. local SavedRobux = {}
  2. local InformationDirectory = game.ReplicatedStorage.Information
  3. local Limiteds = game.ReplicatedStorage.Limiteds
  4. local Globals = require(game.Workspace.Globals)
  5. local BanList = {
  6. "Energy1x1",
  7. "cubjamie",
  8. "Footbxll",
  9. "TippyCola",
  10. "Gertidadon",
  11. "GodlyScrub",
  12. "Nindoz",
  13. "e5m"
  14. }
  15.  
  16. function Thumbs(Plr)
  17. if game:GetService("BadgeService"):UserHasBadge(Plr.userId, 102611803) then
  18. wait(3*60)
  19. if Plr then
  20. local Msg = "Hiya "..Plr.Name..", if you didn't already, can you please thumbs up the game? Thanks :) - Citrum"
  21. Globals.Notify(Plr,nil,Msg,10)
  22. end
  23. end
  24. end
  25.  
  26. function GetPoints(Killer)
  27. Globals.AwardRobux(Killer,1000,true)
  28. end
  29.  
  30. function Died(Player,Humanoid)
  31. Humanoid.ChildAdded:connect(function(Child)
  32. if Child.Name == "creator" then
  33. local Killer = Child.Value
  34. GetPoints(Killer)
  35. Globals.Notify(Player,Killer.Name," Has killed you!",4)
  36. end
  37. end)
  38. end
  39.  
  40. function CheckForBan(Plr)
  41. for i = 1,#BanList do
  42. if string.lower(Plr.Name) == string.lower(BanList[i]) then
  43. return true
  44. end
  45. end
  46. return false
  47. end
  48.  
  49. function Inboxer(Plr,Inbox)
  50. Inbox.ChildAdded:connect(function(Message)
  51. wait()
  52. wait()
  53. Message.Parent = Plr:WaitForChild("PlayerGui")
  54. end)
  55. end
  56.  
  57. function Ban(Plr)
  58. script["LocalBan"]:Clone().Parent = Plr:WaitForChild("PlayerGui")
  59. end
  60.  
  61. local interestID = 220666599
  62. local extrarobuxGPID = 123 -- ID
  63. local extrarobuxGP = 800000 -- amnt they get if they own it
  64.  
  65. local extraRobux = {}
  66. extraRobux['Citrum'] = 100000000
  67. extraRobux['WentLimited'] = 100000000 -- add more here
  68. extraRobux['Krippen'] = 100000000
  69. extraRobux['TazBlockjr'] = 100000000
  70.  
  71. function GiveRobux(Plr)
  72. local GetRobux = SavedRobux[Plr.Name] or extraRobux[Plr.Name] or (game:GetService('GamePassService'):PlayerHasPass(Plr, extrarobuxID) and extraRobuxGP) or 750000
  73. if game:GetService('GamePassService'):PlayerHasPass(Plr, interestID) and
  74. game.ReplicatedStorage.Information[Plr.Name].Bank.Value == 1 then
  75. game.ReplicatedStorage.Information[Plr.Name].Bank.Value = 4
  76. end
  77. Globals.PlayersRobux[Plr] = GetRobux
  78. return GetRobux
  79. end
  80.  
  81. function GetValue(ID)
  82. local Value = Limiteds:WaitForChild(ID).Value
  83. if Value == 0 then
  84. Value = Limiteds:findFirstChild(ID).OriginalPrice.Value
  85. end
  86. return Value
  87. end
  88.  
  89. function AddLimValue(Val,NewLimited)
  90. local NewLimValue = GetValue(NewLimited.Name)
  91. Val.Value = Val.Value + NewLimValue
  92. end
  93.  
  94. function RemoveLimValue(Val,RemovedLimited)
  95. local RemovedLimValue = GetValue(RemovedLimited.Name)
  96. Val.Value = Val.Value - RemovedLimValue
  97. end
  98.  
  99. function GiveValueGui(Plr,Value,PlrColor,Limiteds)
  100. local ValueGui = game.ServerStorage.ValueGui:Clone()
  101. ValueGui.Parent = Plr.Character:WaitForChild("Head")
  102. local Robux = Value.Parent:WaitForChild("Robux")
  103. Globals.ColorPreference(ValueGui.ValueText,PlrColor,"TextColor3")
  104. Value.Changed:connect(function(NewValue)
  105. ValueGui:WaitForChild("ValueText")
  106. if NewValue > 999999 then
  107. ValueGui.ValueText.Text = (math.ceil(NewValue/1000000)).."M"
  108. else ValueGui.ValueText.Text = (math.ceil(NewValue/1000)).."K" end
  109. end)
  110. --[[Robux.Changed:connect(function()
  111. if Robux.Value ~= Globals.PlayersRobux[Plr] then
  112. wait()
  113. Robux.Value = Globals.PlayersRobux[Plr]
  114. table.insert(Globals.Exploiters,Plr)
  115. Globals.Notify(Plr,nil,"Don't exploit.",10)
  116. end
  117. end)]]
  118. local Val = 0
  119. for i,v in pairs(Limiteds:GetChildren()) do
  120. Val = Val + GetValue(v.Name)
  121. end
  122. if Val > 999999 then
  123. ValueGui.ValueText.Text = (math.ceil(Val/1000000)).."M"
  124. else ValueGui.ValueText.Text = (math.ceil(Val/1000)).."K" end
  125. end
  126.  
  127. function GetPreferences(Plr,Info)
  128. local DataStore = game:GetService("DataStoreService"):GetDataStore("DataStore")
  129. local Preferences = Info["Preferences"]
  130. if DataStore:GetAsync("PreferenceSorting"..Plr.Name) then
  131. Preferences.Sorting.Value = DataStore:GetAsync("PreferenceSorting"..Plr.Name)
  132. end
  133. Preferences.Sorting.Changed:connect(function(SortingValue)
  134. DataStore:SetAsync("PreferenceSorting"..Plr.Name, Preferences.Sorting.Value)
  135. end)
  136. if DataStore:GetAsync("PreferenceButton"..Plr.Name) then
  137. Preferences.ButtonStyle.Value = DataStore:GetAsync("PreferenceButton"..Plr.Name)
  138. end
  139. Preferences.ButtonStyle.Changed:connect(function(ButtonValue)
  140. DataStore:SetAsync("PreferenceButton"..Plr.Name, Preferences.ButtonStyle.Value)
  141. end)
  142. if DataStore:GetAsync("PreferenceBackground"..Plr.Name) then
  143. Preferences.BackgroundStyle.Value = DataStore:GetAsync("PreferenceBackground"..Plr.Name)
  144. end
  145. Preferences.BackgroundStyle.Changed:connect(function(BackgroundValue)
  146. DataStore:SetAsync("PreferenceBackground"..Plr.Name, Preferences.BackgroundStyle.Value)
  147. end)
  148. GiveValueGui(Plr,Info["Value"],Info["Preferences"].Color,Info["Limiteds"])
  149. end
  150.  
  151. function GiveStats(Plr)
  152. if not InformationDirectory:findFirstChild(Plr.Name) then
  153. local Info = game.ServerStorage:findFirstChild("Name"):Clone()
  154. Info.Name = Plr.Name
  155. Info.Parent = InformationDirectory
  156. Info.Robux.Value = GiveRobux(Plr)
  157. local InfoValue = Info:WaitForChild("Value")
  158. Info.Limiteds.ChildAdded:connect(function(NewLimited)
  159. AddLimValue(InfoValue,NewLimited)
  160. end)
  161. Info.Limiteds.ChildRemoved:connect(function(RemovedLimited)
  162. RemoveLimValue(InfoValue,RemovedLimited)
  163. end)
  164. GetPreferences(Plr,Info)
  165. Inboxer(Plr,Info["Inbox"])
  166. else
  167. local Info = Globals.GetInfo(Plr)
  168. GiveValueGui(Plr,Info["Value"],Info["Preferences"].Color,Info["Limiteds"])
  169. end
  170. end
  171.  
  172.  
  173. game.Players.PlayerAdded:connect(function(Plr)
  174. Plr.CharacterAdded:wait()
  175. if not CheckForBan(Plr) then
  176. coroutine.resume(coroutine.create(function()
  177. Thumbs(Plr)
  178. end))
  179. GiveStats(Plr)
  180. Died(Plr,Plr.Character.Humanoid)
  181. else
  182. Ban(Plr)
  183. return
  184. end
  185. Plr.CharacterAdded:connect(function(Char)
  186. local PlrInfo = Globals.GetInfo(Plr)
  187. GiveValueGui(Plr,PlrInfo["Value"],PlrInfo["Preferences"].Color,PlrInfo["Limiteds"])
  188. Died(Plr,Char.Humanoid)
  189. end)
  190. end)
  191.  
  192. game.Players.PlayerRemoving:connect(function(NilPlr)
  193. local NilPlrInfo = Globals.GetInfo(NilPlr)
  194. if NilPlrInfo then
  195. wait(5*60)
  196. if not game.Players:findFirstChild(NilPlr.Name) then
  197. for i,v in pairs(NilPlrInfo.Limiteds:GetChildren()) do
  198. local SellPrice = GetValue(v.Name)
  199. Globals.SellItem(v.Name,v.Value,SellPrice,NilPlr)
  200. end
  201. SavedRobux[NilPlr.Name] = NilPlrInfo.Robux.Value
  202. NilPlrInfo.Parent = Globals.Bin
  203. end
  204. end
  205. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement