DurrK

Lumber Dupe

Oct 16th, 2019
12,813
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.52 KB | None | 0 0
  1. --[[
  2. Credits to me the Creator: Johiro
  3. If you need help or find any bugs then contact me or someone else
  4.  
  5. "Tutorials" from me using the functions
  6. ---------------------------------------
  7. Normal Dupe: https://streamable.com/4tx7f
  8. Solo Axe Dupe: https://streamable.com/6t6e7
  9. Money Dupe: https://streamable.com/6eaus
  10. ]]
  11.  
  12.  
  13. -- Objects
  14.  
  15. local ScreenGui = Instance.new("ScreenGui")
  16. local MainFrame = Instance.new("Frame")
  17. local SaveSlot = Instance.new("TextButton")
  18. local DMoney = Instance.new("TextButton")
  19. local Store = Instance.new("TextButton")
  20. local Restore = Instance.new("TextButton")
  21. local DropAxes = Instance.new("TextButton")
  22. local Load = Instance.new("TextButton")
  23. local CountAxes = Instance.new("TextButton")
  24. local Slot = Instance.new("TextBox")
  25.  
  26. -- Properties
  27.  
  28. ScreenGui.Parent = game.CoreGui
  29. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  30.  
  31. MainFrame.Name = "LT2DupeGui"
  32. MainFrame.Parent = ScreenGui
  33. MainFrame.BackgroundColor3 = Color3.new(0.282353, 0.278431, 0.278431)
  34. MainFrame.BorderColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  35. MainFrame.BorderSizePixel = 3
  36. MainFrame.Position = UDim2.new(0.111687116, 0, 0.167118713, 0)
  37. MainFrame.Size = UDim2.new(0, 230, 0, 258)
  38. MainFrame.Active = true
  39. MainFrame.Draggable = true
  40.  
  41. SaveSlot.Name = "SaveSlot"
  42. SaveSlot.Parent = MainFrame
  43. SaveSlot.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  44. SaveSlot.BorderSizePixel = 2
  45. SaveSlot.Position = UDim2.new(0.040079806, 0, 0.302941561, 0)
  46. SaveSlot.Size = UDim2.new(0, 95, 0, 40)
  47. SaveSlot.Font = Enum.Font.SourceSans
  48. SaveSlot.Text = "Save Slot"
  49. SaveSlot.TextColor3 = Color3.new(0, 0, 0)
  50. SaveSlot.TextSize = 14
  51.  
  52. DMoney.Name = "DMoney"
  53. DMoney.Parent = MainFrame
  54. DMoney.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  55. DMoney.BorderSizePixel = 2
  56. DMoney.Position = UDim2.new(0.0410686359, 0, 0.774269283, 0)
  57. DMoney.Size = UDim2.new(0, 95, 0, 40)
  58. DMoney.Font = Enum.Font.SourceSans
  59. DMoney.Text = "Dupe Money"
  60. DMoney.TextColor3 = Color3.new(0, 0, 0)
  61. DMoney.TextSize = 14
  62.  
  63. Store.Name = "Store"
  64. Store.Parent = MainFrame
  65. Store.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  66. Store.BorderSizePixel = 2
  67. Store.Position = UDim2.new(0.514908552, 0, 0.299316287, 0)
  68. Store.Size = UDim2.new(0, 95, 0, 40)
  69. Store.Font = Enum.Font.SourceSans
  70. Store.Text = "Store Axe"
  71. Store.TextColor3 = Color3.new(0, 0, 0)
  72. Store.TextSize = 14
  73.  
  74. Restore.Name = "Restore"
  75. Restore.Parent = MainFrame
  76. Restore.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  77. Restore.BorderSizePixel = 2
  78. Restore.Position = UDim2.new(0.51270771, 0, 0.528562546, 0)
  79. Restore.Size = UDim2.new(0, 95, 0, 40)
  80. Restore.Font = Enum.Font.SourceSans
  81. Restore.Text = "Restore Axe"
  82. Restore.TextColor3 = Color3.new(0, 0, 0)
  83. Restore.TextSize = 14
  84.  
  85. DropAxes.Name = "Drop Axes"
  86. DropAxes.Parent = MainFrame
  87. DropAxes.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  88. DropAxes.BorderSizePixel = 2
  89. DropAxes.Position = UDim2.new(0.514981687, 0, 0.774269283, 0)
  90. DropAxes.Size = UDim2.new(0, 95, 0, 40)
  91. DropAxes.Font = Enum.Font.SourceSans
  92. DropAxes.Text = "Drop Axes"
  93. DropAxes.TextColor3 = Color3.new(0, 0, 0)
  94. DropAxes.TextSize = 14
  95.  
  96. Load.Name = "Load"
  97. Load.Parent = MainFrame
  98. Load.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  99. Load.BorderSizePixel = 2
  100. Load.Position = UDim2.new(0.0410686135, 0, 0.530083239, 0)
  101. Load.Size = UDim2.new(0, 95, 0, 40)
  102. Load.Font = Enum.Font.SourceSans
  103. Load.Text = "Load Slot"
  104. Load.TextColor3 = Color3.new(0, 0, 0)
  105. Load.TextSize = 14
  106.  
  107. CountAxes.Name = "Count Axes"
  108. CountAxes.Parent = MainFrame
  109. CountAxes.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  110. CountAxes.BorderSizePixel = 2
  111. CountAxes.Position = UDim2.new(0.510633886, 0, 0.0688429475, 0)
  112. CountAxes.Size = UDim2.new(0, 95, 0, 40)
  113. CountAxes.Font = Enum.Font.SourceSans
  114. CountAxes.Text = "Count Axes"
  115. CountAxes.TextColor3 = Color3.new(0, 0, 0)
  116. CountAxes.TextSize = 14
  117.  
  118. Slot.Name = "Slot"
  119. Slot.Parent = MainFrame
  120. Slot.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  121. Slot.BorderSizePixel = 2
  122. Slot.Position = UDim2.new(0.0410686322, 0, 0.0697674453, 0)
  123. Slot.Size = UDim2.new(0, 94, 0, 39)
  124. Slot.Font = Enum.Font.SourceSans
  125. Slot.Text = "Slot Number"
  126. Slot.TextColor3 = Color3.new(0, 0, 0)
  127. Slot.TextSize = 14
  128.  
  129. --Locals
  130. local MoneyCooldown = false
  131. local CurrentSlot = game.Players.LocalPlayer:WaitForChild("CurrentSaveSlot").Value
  132. local ScriptLoadOrSave = false
  133. local CurrentlySavingOrLoading = game.Players.LocalPlayer:WaitForChild("CurrentlySavingOrLoading")
  134.  
  135. --Functions
  136. local function CheckIfSlotAvailable(Slot)
  137. for a,b in pairs(game.ReplicatedStorage.LoadSaveRequests.GetMetaData:InvokeServer(game.Players.LocalPlayer)) do
  138. if a == Slot then
  139. for c,d in pairs(b) do
  140. if c == "NumSaves" and d ~= 0 then
  141. return true
  142. else
  143. return false
  144. end
  145. end
  146. end
  147. end
  148. end
  149.  
  150. local function CheckSlotNumber() --Checks if the slot number is right
  151. 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
  152. local SlotNumber = tonumber(Slot.Text)
  153. return SlotNumber
  154. else return false
  155. end
  156. end
  157.  
  158. local function SendNotification(Title,Text,Duration) -- Sends Notification in the bottom right of the screen
  159. game.StarterGui:SetCore("SendNotification", {
  160. Title = Title;
  161. Text = Text;
  162. Icon = nil;
  163. Duration = Duration
  164. })
  165. end
  166.  
  167. SaveSlot.MouseButton1Down:connect(function() --Saves the slot that you want
  168. local CheckSlot = CheckSlotNumber()
  169. if CheckSlot ~= false then
  170. if CurrentSlot ~= -1 then
  171. ScriptLoadOrSave = true
  172. local SaveSlot = game.ReplicatedStorage.LoadSaveRequests.RequestSave:InvokeServer(CheckSlot)
  173. if SaveSlot == true then
  174. SendNotification("Save Notification", "Saved your Slot", 2)
  175. wait(.5)
  176. ScriptLoadOrSave = false
  177. elseif SaveSlot == false then
  178. SendNotification("Already Saving", "Saving/Loading is currently in Progress", 1)
  179. wait(.5)
  180. ScriptLoadOrSave = false
  181. end
  182. else
  183. SendNotification("Error", "Load Your Slot First before saving", 1)
  184. end
  185. else
  186. SendNotification("Incorrect Slot", "Enter a number in the upper field", 1)
  187. end
  188. end)
  189.  
  190. Load.MouseButton1Down:connect(function() --Loads the slot you want
  191. ScriptLoadOrSave = true
  192. local CheckSlot = CheckSlotNumber()
  193. if CheckSlot ~= false then
  194. if CheckIfSlotAvailable(CheckSlot) == true then
  195. local LoadSlot = game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(CheckSlot)
  196. if LoadSlot == false then
  197. SendNotification("Cooldown Notification", "You aren't abled to load now", 1)
  198. end
  199. if LoadSlot == true then
  200. SendNotification("Reload Notification", "Loaded Your Slot", 2)
  201. CurrentSlot = CheckSlot
  202. end
  203. else
  204. SendNotification("Slot not Available", "This Slot is not Available, please choose another slot", 2)
  205. end
  206. else
  207. SendNotification("Incorrect Slot", "Enter a Valid number in the upper field", 1)
  208. end
  209. ScriptLoadOrSave = false
  210. end)
  211.  
  212. Store.MouseButton1Down:connect(function() --Stores the Axes somewhere so you can restore them later
  213. Amount = 0
  214. for a,b in pairs(game.Players.LocalPlayer.Backpack:GetChildren())do
  215. if b.Name ~= "BlueprintTool" and b.Name == "Tool" then
  216. b.Parent = game.Players.LocalPlayer
  217. Amount = Amount + 1
  218. end
  219. end
  220. SendNotification("Store Notification", "Stored "..Amount.." Axes, you can restore them later", 2)
  221. end)
  222.  
  223. Restore.MouseButton1Down:connect(function() --Restores the axes that you stored with the Store function
  224. Amount = 0
  225. for a,b in pairs(game.Players.LocalPlayer:GetChildren()) do
  226. if b.Name ~= "BlueprintTool" and b.Name == "Tool" then
  227. b.Parent = game.Players.LocalPlayer.Backpack
  228. Amount = Amount + 1
  229. end
  230. end
  231. SendNotification("Restore Notification", "Restored "..Amount.." Axes that you Stored", 2)
  232. end)
  233.  
  234. CountAxes.MouseButton1Down:connect(function() --Counts Axes in your Backpack (Equiped Axes dont Count)
  235. Amount = 0
  236. for a,b in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  237. if b.Name ~= "BlueprintTool" and b.Name == "Tool" then
  238. Amount = Amount + 1
  239. end
  240. end
  241. SendNotification("Axe Amount", "You have "..Amount.." Axes in your Backpack",2)
  242. end)
  243.  
  244. DropAxes.MouseButton1Down:connect(function() --Drops all your Axes
  245. Amount = 0
  246. for a,b in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  247. if b.Name ~= "BlueprintTool" and b.Name == "Tool" then
  248. game.ReplicatedStorage.Interaction.ClientInteracted:FireServer(b, "Drop tool", game.Players.LocalPlayer.Character.Head.CFrame)
  249. Amount = Amount + 1
  250. end
  251. end
  252. SendNotification("Axe Dropped", "Dropped "..Amount.." Axes from your Backpack",5)
  253. end)
  254.  
  255. DMoney.MouseButton1Down:connect(function() --Sends the money and will come back after around 2 mins
  256. if MoneyCooldown == true then
  257. SendNotification("Cooldown Notification", "Wait for your Money to come back",2)
  258. return
  259. elseif MoneyCooldown == false then
  260. MoneyCooldown = true
  261. SendNotification("Money Sent", "Wait about 2 minutes for your Money to come back", 5)
  262. game.ReplicatedStorage.Transactions.ClientToServer.Donate:InvokeServer(game.Players.LocalPlayer, game.Players.LocalPlayer.leaderstats.Money.Value, 1)
  263. SendNotification("Money Received", "You received your money that you have sent earlier", 5)
  264. MoneyCooldown = false
  265. end
  266. end)
  267.  
  268. --Anti Overwrite Slot (Sub-Function)
  269. while wait(.15) do
  270. if CurrentlySavingOrLoading.Value == true and ScriptLoadOrSave == false then
  271. repeat
  272. wait(1)
  273. until CurrentlySavingOrLoading.Value == false
  274. wait(1)
  275. CurrentSlot = game.Players.LocalPlayer.CurrentSaveSlot.Value
  276. print(CurrentSlot)
  277. end
  278. end
Add Comment
Please, Sign In to add comment