Tw1tch_Jordan

[TW] Lumber tycoon 2 money dupe WORKING

Jan 19th, 2020
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.61 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local OpenFrame = Instance.new("Frame")
  6. local Open = Instance.new("TextButton")
  7. local MainFrame = Instance.new("Frame")
  8. local BeautyA = Instance.new("Frame")
  9. local BeautyB = Instance.new("Frame")
  10. local TextLabel = Instance.new("TextLabel")
  11. local TextLabel_2 = Instance.new("TextLabel")
  12. local Slot = Instance.new("TextBox")
  13. local LoadSlot = Instance.new("TextButton")
  14. local SaveSlot = Instance.new("TextButton")
  15. local Dmoney = Instance.new("TextButton")
  16. --Properties:
  17. ScreenGui.Parent = game.CoreGui
  18. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  19.  
  20. OpenFrame.Name = "OpenFrame"
  21. OpenFrame.Parent = ScreenGui
  22. OpenFrame.BackgroundColor3 = Color3.new(1, 0, 0)
  23. OpenFrame.Position = UDim2.new(0, 0, 0.495316148, 0)
  24. OpenFrame.Size = UDim2.new(0, 100, 0, 35)
  25.  
  26. Open.Name = "Open"
  27. Open.Parent = OpenFrame
  28. Open.BackgroundColor3 = Color3.new(1, 0, 0)
  29. Open.Size = UDim2.new(0, 100, 0, 35)
  30. Open.Font = Enum.Font.Cartoon
  31. Open.Text = "OPEN"
  32. Open.TextColor3 = Color3.new(0, 0, 0)
  33. Open.TextScaled = true
  34. Open.TextSize = 14
  35. Open.TextStrokeColor3 = Color3.new(0.529412, 1, 0.145098)
  36. Open.TextWrapped = true
  37. Open.MouseButton1Down:connect(function()
  38. MainFrame.Visible = true
  39. OpenFrame.Visible = false
  40. end)
  41.  
  42. MainFrame.Name = "MainFrame"
  43. MainFrame.Parent = ScreenGui
  44. MainFrame.BackgroundColor3 = Color3.new(1, 0, 0)
  45. MainFrame.BackgroundTransparency = 0.20000000298023
  46. MainFrame.BorderSizePixel = 0
  47. MainFrame.Position = UDim2.new(0.304932743, 0, 0.218969554, 0)
  48. MainFrame.Size = UDim2.new(0, 218, 0, 357)
  49. MainFrame.Visible = false
  50. MainFrame.Draggable = true
  51.  
  52. BeautyA.Name = "BeautyA"
  53. BeautyA.Parent = MainFrame
  54. BeautyA.BackgroundColor3 = Color3.new(0.878431, 0.0745098, 0.0784314)
  55. BeautyA.BackgroundTransparency = 0.20000000298023
  56. BeautyA.BorderSizePixel = 0
  57. BeautyA.Size = UDim2.new(0, 218, 0, 29)
  58.  
  59. BeautyB.Name = "BeautyB"
  60. BeautyB.Parent = MainFrame
  61. BeautyB.BackgroundColor3 = Color3.new(0.878431, 0.0745098, 0.0784314)
  62. BeautyB.BackgroundTransparency = 0.20000000298023
  63. BeautyB.BorderSizePixel = 0
  64. BeautyB.Position = UDim2.new(0, 0, 0.911315084, 0)
  65. BeautyB.Size = UDim2.new(0, 218, 0, 29)
  66.  
  67. TextLabel.Parent = MainFrame
  68. TextLabel.BackgroundColor3 = Color3.new(0.85098, 0, 0)
  69. TextLabel.BackgroundTransparency = 0.20000000298023
  70. TextLabel.BorderSizePixel = 0
  71. TextLabel.Position = UDim2.new(0.0306429267, 0, 0, 0)
  72. TextLabel.Size = UDim2.new(0, 200, 0, 29)
  73. TextLabel.Font = Enum.Font.Cartoon
  74. TextLabel.Text = "LGR'S Exploits"
  75. TextLabel.TextColor3 = Color3.new(0.0980392, 0.847059, 0.537255)
  76. TextLabel.TextScaled = true
  77. TextLabel.TextSize = 14
  78. TextLabel.TextStrokeTransparency = 0
  79. TextLabel.TextWrapped = true
  80.  
  81. TextLabel_2.Parent = MainFrame
  82. TextLabel_2.BackgroundColor3 = Color3.new(0.85098, 0, 0)
  83. TextLabel_2.BackgroundTransparency = 0.20000000298023
  84. TextLabel_2.BorderSizePixel = 0
  85. TextLabel_2.Position = UDim2.new(0.0306429267, 0, 0.911314964, 0)
  86. TextLabel_2.Size = UDim2.new(0, 200, 0, 29)
  87. TextLabel_2.Font = Enum.Font.Code
  88. TextLabel_2.Text = "V 1.3"
  89. TextLabel_2.TextColor3 = Color3.new(0.0862745, 0.756863, 0.478431)
  90. TextLabel_2.TextScaled = true
  91. TextLabel_2.TextSize = 14
  92. TextLabel_2.TextStrokeTransparency = 0
  93. TextLabel_2.TextWrapped = true
  94.  
  95. Slot.Name = "Slot"
  96. Slot.Parent = MainFrame
  97. Slot.BackgroundColor3 = Color3.new(1, 0, 0)
  98. Slot.Position = UDim2.new(0.154887691, 0, 0.226890758, 0)
  99. Slot.Size = UDim2.new(0, 144, 0, 31)
  100. Slot.Font = Enum.Font.Code
  101. Slot.Text = "Slot Number"
  102. Slot.TextColor3 = Color3.new(0.0980392, 0.847059, 0.537255)
  103. Slot.TextScaled = true
  104. Slot.TextSize = 14
  105. Slot.TextStrokeTransparency = 0
  106. Slot.TextWrapped = true
  107.  
  108. LoadSlot.Name = "LoadSlot"
  109. LoadSlot.Parent = MainFrame
  110. LoadSlot.BackgroundColor3 = Color3.new(1, 0, 0)
  111. LoadSlot.Position = UDim2.new(0.154887691, 0, 0.376844049, 0)
  112. LoadSlot.Size = UDim2.new(0, 144, 0, 31)
  113. LoadSlot.Font = Enum.Font.Cartoon
  114. LoadSlot.Text = "Load Slot"
  115. LoadSlot.TextColor3 = Color3.new(0.0941177, 0.811765, 0.513726)
  116. LoadSlot.TextScaled = true
  117. LoadSlot.TextSize = 14
  118. LoadSlot.TextStrokeTransparency = 0
  119. LoadSlot.TextWrapped = true
  120.  
  121. SaveSlot.Name = "SaveSlot"
  122. SaveSlot.Parent = MainFrame
  123. SaveSlot.BackgroundColor3 = Color3.new(1, 0, 0)
  124. SaveSlot.Position = UDim2.new(0.154887691, 0, 0.523996294, 0)
  125. SaveSlot.Size = UDim2.new(0, 144, 0, 31)
  126. SaveSlot.Font = Enum.Font.Cartoon
  127. SaveSlot.Text = "SaveSlot"
  128. SaveSlot.TextColor3 = Color3.new(0.0941177, 0.811765, 0.513726)
  129. SaveSlot.TextScaled = true
  130. SaveSlot.TextSize = 14
  131. SaveSlot.TextStrokeTransparency = 0
  132. SaveSlot.TextWrapped = true
  133.  
  134. Dmoney.Name = "Dmoney"
  135. Dmoney.Parent = MainFrame
  136. Dmoney.BackgroundColor3 = Color3.new(1, 0, 0)
  137. Dmoney.Position = UDim2.new(0.154887691, 0, 0.659533083, 0)
  138. Dmoney.Size = UDim2.new(0, 144, 0, 31)
  139. Dmoney.Font = Enum.Font.Cartoon
  140. Dmoney.Text = "Dupe Money"
  141. Dmoney.TextColor3 = Color3.new(0.0941177, 0.811765, 0.513726)
  142. Dmoney.TextScaled = true
  143. Dmoney.TextSize = 14
  144. Dmoney.TextStrokeTransparency = 0
  145. Dmoney.TextWrapped = true
  146.  
  147. --Locals
  148. local MoneyCooldown = false
  149. local CurrentSlot = game.Players.LocalPlayer:WaitForChild("CurrentSaveSlot").Value
  150. local ScriptLoadOrSave = false
  151. local CurrentlySavingOrLoading = game.Players.LocalPlayer:WaitForChild("CurrentlySavingOrLoading")
  152.  
  153. --Functions
  154. local function CheckIfSlotAvailable(Slot)
  155. for a,b in pairs(game.ReplicatedStorage.LoadSaveRequests.GetMetaData:InvokeServer(game.Players.LocalPlayer)) do
  156. if a == Slot then
  157. for c,d in pairs(b) do
  158. if c == "NumSaves" and d ~= 0 then
  159. return true
  160. else
  161. return false
  162. end
  163. end
  164. end
  165. end
  166. end
  167.  
  168. local function CheckSlotNumber() --Checks if the slot number is right
  169. if Slot.Text == "1" or Slot.Text == "2" or Slot.Text == "3" or Slot.Text == "4" or Slot.Text == "5" or Slot.Text == "6" then
  170. local SlotNumber = tonumber(Slot.Text)
  171. return SlotNumber
  172. else return false
  173. end
  174. end
  175.  
  176. local function SendNotification(Title,Text,Duration) -- Sends Notification in the bottom right of the screen
  177. game.StarterGui:SetCore("SendNotification", {
  178. Title = Title;
  179. Text = Text;
  180. Icon = nil;
  181. Duration = Duration
  182. })
  183. end
  184.  
  185. SaveSlot.MouseButton1Down:connect(function() --Saves the slot that you want
  186. local CheckSlot = CheckSlotNumber()
  187. if CheckSlot ~= false then
  188. if CurrentSlot ~= -1 then
  189. ScriptLoadOrSave = true
  190. local SaveSlot = game.ReplicatedStorage.LoadSaveRequests.RequestSave:InvokeServer(CheckSlot)
  191. if SaveSlot == true then
  192. SendNotification("Save Notification", "Saved your Slot", 2)
  193. wait(.5)
  194. ScriptLoadOrSave = false
  195. elseif SaveSlot == false then
  196. SendNotification("Already Saving", "Saving/Loading is currently in Progress", 1)
  197. wait(.5)
  198. ScriptLoadOrSave = false
  199. end
  200. else
  201. SendNotification("Error", "Load Your Slot First before saving", 1)
  202. end
  203. else
  204. SendNotification("Incorrect Slot", "Enter a number in the upper field", 1)
  205. end
  206. end)
  207.  
  208. LoadSlot.MouseButton1Down:connect(function() --Loads the slot you want
  209. ScriptLoadOrSave = true
  210. local CheckSlot = CheckSlotNumber()
  211. if CheckSlot ~= false then
  212. if CheckIfSlotAvailable(CheckSlot) == true then
  213. local LoadSlot = game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(CheckSlot)
  214. if LoadSlot == false then
  215. SendNotification("Cooldown Notification", "You aren't abled to load now", 1)
  216. end
  217. if LoadSlot == true then
  218. SendNotification("Reload Notification", "Loaded Your Slot", 2)
  219. CurrentSlot = CheckSlot
  220. end
  221. else
  222. SendNotification("Slot not Available", "This Slot is not Available, please choose another slot", 2)
  223. end
  224. else
  225. SendNotification("Incorrect Slot", "Enter a Valid number in the upper field", 1)
  226. end
  227. ScriptLoadOrSave = false
  228. end)
  229.  
  230. Dmoney.MouseButton1Down:connect(function() --Sends the money and will come back after around 2 mins
  231. if MoneyCooldown == true then
  232. SendNotification("Cooldown Notification", "Wait for your Money to come back",2)
  233. return
  234. elseif MoneyCooldown == false then
  235. MoneyCooldown = true
  236. SendNotification("Money Sent", "Wait about 2 minutes for your Money to come back", 5)
  237. game.ReplicatedStorage.Transactions.ClientToServer.Donate:InvokeServer(game.Players.LocalPlayer, game.Players.LocalPlayer.leaderstats.Money.Value, 1)
  238. SendNotification("Money Received", "You received your money that you have sent earlier", 5)
  239. MoneyCooldown = false
  240. end
  241. end)
  242.  
  243. --Anti Overwrite Slot (Sub-Function)
  244. while wait(.15) do
  245. if CurrentlySavingOrLoading.Value == true and ScriptLoadOrSave == false then
  246. repeat
  247. wait(1)
  248. until CurrentlySavingOrLoading.Value == false
  249. wait(1)
  250. CurrentSlot = game.Players.LocalPlayer.CurrentSaveSlot.Value
  251. print(CurrentSlot)
  252. end
  253. end
Add Comment
Please, Sign In to add comment