YT_PatricioTGN

Lumber tycoon 2 source - TGN EXPLOIT X

Mar 23rd, 2021
654
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.98 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Main = Instance.new("Frame")
  3. local Dupe = Instance.new("TextButton")
  4. local SL = Instance.new("TextButton")
  5. local SF = Instance.new("Frame")
  6. local S1 = Instance.new("TextButton")
  7. local S3 = Instance.new("TextButton")
  8. local S2 = Instance.new("TextButton")
  9. local S6 = Instance.new("TextButton")
  10. local S5 = Instance.new("TextButton")
  11. local S4 = Instance.new("TextButton")
  12. local Frame = Instance.new("Frame")
  13. local Close = Instance.new("TextButton")
  14. local ImageButton = Instance.new("ImageButton")
  15. local TextLabel = Instance.new("TextLabel")
  16.  
  17. ScreenGui.Parent = game.CoreGui
  18.  
  19. ImageButton.Parent = ScreenGui
  20. ImageButton.BackgroundColor3 = Color3.new(1, 1, 1)
  21. ImageButton.BorderSizePixel = 0
  22. ImageButton.Position = UDim2.new(0.306653798, 0, 0.101391658, 0)
  23. ImageButton.Size = UDim2.new(0, 400, 0, 400)
  24. ImageButton.Image = "http://www.roblox.com/asset/?id=5136300631"
  25.  
  26. TextLabel.Parent = ImageButton
  27. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  28. TextLabel.BackgroundTransparency = 1
  29. TextLabel.Position = UDim2.new(0, 0, 0.817499995, 0)
  30. TextLabel.Size = UDim2.new(0, 400, 0, 73)
  31. TextLabel.Font = Enum.Font.SciFi
  32. if game.Players.LocalPlayer.Name == "jjkyt1234" then
  33. TextLabel.Text = "Hi Youtube (:"
  34. else
  35. TextLabel.Text = "Welcome "..game.Players.LocalPlayer.Name
  36. end
  37. TextLabel.TextColor3 = Color3.new(0, 1, 0.933333)
  38. TextLabel.TextScaled = true
  39. TextLabel.TextSize = 14
  40. TextLabel.TextWrapped = true
  41.  
  42. Main.Name = "Main"
  43. Main.Parent = ScreenGui
  44. Main.BackgroundColor3 = Color3.new(0, 0, 1)
  45. Main.BorderSizePixel = 0
  46. Main.Position = UDim2.new(0.332887709, 0, 0.372509956, 0)
  47. Main.Size = UDim2.new(0, 249, 0, 127)
  48. Main.Active = true
  49. Main.Draggable = true
  50. Main.Visible = false
  51.  
  52. Dupe.Name = "Dupe"
  53. Dupe.Parent = Main
  54. Dupe.BackgroundColor3 = Color3.new(0, 1, 1)
  55. Dupe.BorderSizePixel = 3
  56. Dupe.BorderColor3 = Color3.new(0, 0, 0)
  57. Dupe.Position = UDim2.new(0.0923694819, 0, 0.322834641, 0)
  58. Dupe.Size = UDim2.new(0, 203, 0, 44)
  59. Dupe.Font = Enum.Font.Garamond
  60. Dupe.Text = "Dupe Money"
  61. Dupe.TextColor3 = Color3.new(0, 0, 0)
  62. Dupe.TextScaled = true
  63. Dupe.TextSize = 14
  64. Dupe.TextWrapped = true
  65.  
  66. SL.Name = "SL"
  67. SL.Parent = Main
  68. SL.BackgroundColor3 = Color3.new(0.890196, 0, 0.0117647)
  69. SL.BorderSizePixel = 0
  70. SL.Position = UDim2.new(0.112449802, 0, 0.795275569, 0)
  71. SL.Size = UDim2.new(0, 194, 0, 26)
  72. SL.Font = Enum.Font.SourceSans
  73. SL.Text = "Slot Number"
  74. SL.TextColor3 = Color3.new(0, 1, 0.498039)
  75. SL.TextScaled = true
  76. SL.TextSize = 14
  77. SL.TextWrapped = true
  78.  
  79. SF.Name = "SF"
  80. SF.Parent = SL
  81. SF.BackgroundColor3 = Color3.new(1, 1, 1)
  82. SF.BackgroundTransparency = 1
  83. SF.BorderSizePixel = 0
  84. SF.Position = UDim2.new(0, 0, 1, 0)
  85. SF.Size = UDim2.new(0, 100, 0, 100)
  86. SF.Visible = false
  87.  
  88. S1.Name = "S1"
  89. S1.Parent = SF
  90. S1.BackgroundColor3 = Color3.new(0, 0, 0)
  91. S1.BorderSizePixel = 1
  92. S1.BorderColor3 = Color3.new(0, 0, 0)
  93. S1.Size = UDim2.new(0, 194, 0, 30)
  94. S1.Font = Enum.Font.Garamond
  95. S1.Text = "Slot Number 1"
  96. S1.TextColor3 = Color3.new(1, 0, 0)
  97. S1.TextScaled = true
  98. S1.TextSize = 14
  99. S1.TextWrapped = true
  100.  
  101. S3.Name = "S3"
  102. S3.Parent = SF
  103. S3.BackgroundColor3 = Color3.new(0, 0, 0)
  104. S3.BorderSizePixel = 1
  105. S3.BorderColor3 = Color3.new(0, 0, 0)
  106. S3.Position = UDim2.new(-0, 0, 0.639999986, 0)
  107. S3.Size = UDim2.new(0, 194, 0, 30)
  108. S3.Font = Enum.Font.Garamond
  109. S3.Text = "Slot Number 3"
  110. S3.TextColor3 = Color3.new(1, 0, 0)
  111. S3.TextScaled = true
  112. S3.TextSize = 14
  113. S3.TextWrapped = true
  114.  
  115. S2.Name = "S2"
  116. S2.Parent = SF
  117. S2.BackgroundColor3 = Color3.new(0, 0, 0)
  118. S2.BorderSizePixel = 1
  119. S2.BorderColor3 = Color3.new(0, 0, 0)
  120. S2.Position = UDim2.new(0, 0, 0.319999993, 0)
  121. S2.Size = UDim2.new(0, 194, 0, 30)
  122. S2.Font = Enum.Font.Garamond
  123. S2.Text = "Slot Number 2"
  124. S2.TextColor3 = Color3.new(1, 0, 0)
  125. S2.TextScaled = true
  126. S2.TextSize = 14
  127. S2.TextWrapped = true
  128.  
  129. S6.Name = "S6"
  130. S6.Parent = SF
  131. S6.BackgroundColor3 = Color3.new(0, 0, 0)
  132. S6.BorderSizePixel = 1
  133. S6.BorderColor3 = Color3.new(0, 0, 0)
  134. S6.Position = UDim2.new(0, 0, 1.60000002, 0)
  135. S6.Size = UDim2.new(0, 194, 0, 30)
  136. S6.Font = Enum.Font.Garamond
  137. S6.Text = "Slot Number 6"
  138. S6.TextColor3 = Color3.new(1, 0, 0)
  139. S6.TextScaled = true
  140. S6.TextSize = 14
  141. S6.TextWrapped = true
  142.  
  143. S5.Name = "S5"
  144. S5.Parent = SF
  145. S5.BackgroundColor3 = Color3.new(0, 0, 0)
  146. S5.BorderSizePixel = 1
  147. S5.BorderColor3 = Color3.new(0, 0, 0)
  148. S5.Position = UDim2.new(0, 0, 1.27999997, 0)
  149. S5.Size = UDim2.new(0, 194, 0, 30)
  150. S5.Font = Enum.Font.Garamond
  151. S5.Text = "Slot Number 5"
  152. S5.TextColor3 = Color3.new(1, 0, 0)
  153. S5.TextScaled = true
  154. S5.TextSize = 14
  155. S5.TextWrapped = true
  156.  
  157. S4.Name = "S4"
  158. S4.Parent = SF
  159. S4.BackgroundColor3 = Color3.new(0, 0, 0)
  160. S4.BorderSizePixel = 1
  161. S4.BorderColor3 = Color3.new(0, 0, 0)
  162. S4.Position = UDim2.new(0, 0, 0.959999979, 0)
  163. S4.Size = UDim2.new(0, 194, 0, 30)
  164. S4.Font = Enum.Font.Garamond
  165. S4.Text = "Slot Number 4"
  166. S4.TextColor3 = Color3.new(1, 0, 0)
  167. S4.TextScaled = true
  168. S4.TextSize = 14
  169. S4.TextWrapped = true
  170.  
  171. Frame.Parent = Main
  172. Frame.BackgroundColor3 = Color3.new(0.847059, 0.564706, 0)
  173. Frame.BorderSizePixel = 0
  174. Frame.Size = UDim2.new(0, 249, 0, 26)
  175.  
  176. Close.Name = "Close"
  177. Close.Parent = Frame
  178. Close.BackgroundColor3 = Color3.new(1, 0, 0)
  179. Close.BorderSizePixel = 0
  180. Close.Position = UDim2.new(0.863453865, 0, 0, 0)
  181. Close.Size = UDim2.new(0, 34, 0, 26)
  182. Close.Font = Enum.Font.SourceSans
  183. Close.Text = "X"
  184. Close.TextColor3 = Color3.new(0, 0, 0)
  185. Close.TextSize = 14
  186. Close.MouseButton1Down:connect(function()
  187. Sound22()
  188. ScreenGui:Destroy()
  189. end)
  190.  
  191. local Slots = { S1, S2, S3, S4, S5, S6 }
  192.  
  193. function Sound11()
  194. local s = Instance.new("Sound")
  195.  
  196. s.Name = "Sound"
  197. s.SoundId = "rbxassetid://408524543"
  198. s.Volume = 2
  199. s.archivable = false
  200. s.Parent = game.Workspace
  201. s:play()
  202. end
  203. function Sound22()
  204. local Song1 = Instance.new("Sound")
  205.  
  206. Song1.Name = "Song1"
  207. Song1.SoundId = "rbxassetid://452267918"
  208. Song1.Volume = 2
  209. Song1.archivable = false
  210. Song1.Parent = game.Workspace
  211. Song1:play()
  212. end
  213.  
  214. ImageButton.MouseButton1Down:connect(function()
  215. Sound22()
  216. ImageButton.Visible = false
  217. Main.Visible = true
  218. end)
  219.  
  220. for i,v in pairs(Slots) do
  221. v.MouseButton1Down:connect(function()
  222. Sound22()
  223. SF.Visible = false
  224. SL.Text = v.Text
  225. end)
  226. v.MouseEnter:connect(function()
  227. Sound11()
  228. v.BorderColor3 = Color3.new(1, 0, 0)
  229. v.TextColor3 = Color3.new(0, 1, 1)
  230. end)
  231. v.MouseLeave:Connect(function()
  232. v.BorderColor3 = Color3.new(0, 0, 0)
  233. v.TextColor3 = Color3.new(1, 0, 0)
  234. end)
  235. end
  236.  
  237. Dupe.MouseEnter:connect(function()
  238. Sound11()
  239. Dupe.BorderColor3 = Color3.new(1, 0, 0)
  240. Dupe.BackgroundColor3 = Color3.new(0, 0, 0)
  241. Dupe.TextColor3 = Color3.new(1, 0, 0)
  242. end)
  243. Dupe.MouseLeave:Connect(function()
  244. Dupe.BorderColor3 = Color3.new(0, 0, 0)
  245. Dupe.BackgroundColor3 = Color3.new(0, 1, 1)
  246. Dupe.TextColor3 = Color3.new(0, 0, 0)
  247. end)
  248.  
  249. SL.MouseButton1Down:connect(function()
  250. Sound22()
  251. if SF.Visible == false then
  252. SF.Visible = true
  253. else
  254. SF.Visible = false
  255. end
  256. end)
  257.  
  258. function ML(Tex)
  259. game:GetService("Players").LocalPlayer.PlayerGui.MoneyDisplayGui.Text.Text = Tex
  260. game:GetService("Players").LocalPlayer.PlayerGui.MoneyDisplayGui.Text.DropShadow.Text = Tex
  261. end
  262.  
  263. Dupe.MouseButton1Down:connect(function()
  264. Sound22()
  265. local DupeMoney
  266. if SL.Text == "Slot Number 1" then
  267. DupeMoney = 1
  268. elseif SL.Text == "Slot Number 2" then
  269. DupeMoney = 2
  270. elseif SL.Text == "Slot Number 3" then
  271. DupeMoney = 3
  272. elseif SL.Text == "Slot Number 4" then
  273. DupeMoney = 4
  274. elseif SL.Text == "Slot Number 5" then
  275. DupeMoney = 5
  276. elseif SL.Text == "Slot Number 6" then
  277. DupeMoney = 6
  278. end
  279. if game.Players.LocalPlayer.CurrentSaveSlot.Value ~= -1 and DupeMoney ~= nil then
  280. game:GetService("StarterGui"):SetCore("SendNotification",{
  281. Title = "By Hacker#8326",
  282. Text = "You Cant Have Any Slot Loaded",
  283. Duration = 15,
  284. })
  285. return
  286. end
  287. if DupeMoney ~= nil then
  288. if Duping == true then
  289. game:GetService("StarterGui"):SetCore("SendNotification",{
  290. Title = "By Hacker#8326",
  291. Text = "You Must Wait Until The Dupe Is Over",
  292. Duration = 15,
  293. })
  294. return
  295. end
  296. Duping = true
  297. local Folder
  298. if game.Players.LocalPlayer.CurrentSaveSlot.Value == -1 then
  299. if not game.Workspace:FindFirstChild("Folder") then
  300. Folder = Instance.new("Folder", game:GetService("Workspace"))
  301. end
  302.  
  303. function Load(NumberSlot)
  304. game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(NumberSlot)
  305. end
  306.  
  307. game:GetService("Workspace").Folder.ChildAdded:connect(function(v)
  308. if v.Name == "Part" then
  309. game:GetService("Workspace").Folder.Part:Destroy()
  310. wait()
  311. game.ReplicatedStorage.Transactions.ClientToServer.Donate:InvokeServer(game.Players.LocalPlayer, game.Players.LocalPlayer.leaderstats.Money.Value, 1)
  312. game:GetService("StarterGui"):SetCore("SendNotification",{
  313. Title = "By Hacker#8326",
  314. Text = "Dupe Is Over, Enjoy Your Money",
  315. Duration = 15,
  316. })
  317. end
  318. end)
  319.  
  320. Load(DupeMoney)
  321. if game.Players.LocalPlayer.leaderstats.Money.Value == 20 then
  322. game:GetService("StarterGui"):SetCore("SendNotification",{
  323. Title = "By Hacker#8326",
  324. Text = "You Must Load Your Base, Repeat The Command Again",
  325. Duration = 15,
  326. })
  327. Duping = false
  328. return
  329. end
  330. game:GetService("StarterGui"):SetCore("SendNotification",{
  331. Title = "By Hacker#8326",
  332. Text = "Please Wait 60 Seconds",
  333. Duration = 15,
  334. })
  335. for i=59,0,-1 do
  336. ML(i)
  337. wait(1)
  338. end
  339. local a = Instance.new("Part", Folder)
  340. wait(0.1)
  341. Load(-1)
  342. game:GetService("Workspace").Folder:Destroy()
  343. Duping = false
  344. game:GetService("StarterGui"):SetCore("SendNotification",{
  345. Title = "By Hacker#8326",
  346. Text = "Load Your Save and Wait The Money Come Back!",
  347. Duration = 15,
  348. })
  349. end
  350. end
  351. end)
  352.  
  353. -- Objects
  354.  
  355. local ScreenGui = Instance.new("ScreenGui")
  356. local MainFrame = Instance.new("Frame")
  357. local SaveSlot = Instance.new("TextButton")
  358. local DMoney = Instance.new("TextButton")
  359. local Store = Instance.new("TextButton")
  360. local Restore = Instance.new("TextButton")
  361. local DropAxes = Instance.new("TextButton")
  362. local Load = Instance.new("TextButton")
  363. local CountAxes = Instance.new("TextButton")
  364. local Slot = Instance.new("TextBox")
  365.  
  366. -- Properties
  367.  
  368. ScreenGui.Parent = game.CoreGui
  369. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  370.  
  371. MainFrame.Name = "LT2DupeGui"
  372. MainFrame.Parent = ScreenGui
  373. MainFrame.BackgroundColor3 = Color3.new(0.282353, 0.278431, 0.278431)
  374. MainFrame.BorderColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  375. MainFrame.BorderSizePixel = 3
  376. MainFrame.Position = UDim2.new(0.111687116, 0, 0.167118713, 0)
  377. MainFrame.Size = UDim2.new(0, 230, 0, 258)
  378. MainFrame.Active = true
  379. MainFrame.Draggable = true
  380.  
  381. SaveSlot.Name = "SaveSlot"
  382. SaveSlot.Parent = MainFrame
  383. SaveSlot.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  384. SaveSlot.BorderSizePixel = 2
  385. SaveSlot.Position = UDim2.new(0.040079806, 0, 0.302941561, 0)
  386. SaveSlot.Size = UDim2.new(0, 95, 0, 40)
  387. SaveSlot.Font = Enum.Font.SourceSans
  388. SaveSlot.Text = "Save Slot"
  389. SaveSlot.TextColor3 = Color3.new(0, 0, 0)
  390. SaveSlot.TextSize = 14
  391.  
  392. DMoney.Name = "DMoney"
  393. DMoney.Parent = MainFrame
  394. DMoney.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  395. DMoney.BorderSizePixel = 2
  396. DMoney.Position = UDim2.new(0.0410686359, 0, 0.774269283, 0)
  397. DMoney.Size = UDim2.new(0, 95, 0, 40)
  398. DMoney.Font = Enum.Font.SourceSans
  399. DMoney.Text = "Dupe Money"
  400. DMoney.TextColor3 = Color3.new(0, 0, 0)
  401. DMoney.TextSize = 14
  402.  
  403. Store.Name = "Store"
  404. Store.Parent = MainFrame
  405. Store.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  406. Store.BorderSizePixel = 2
  407. Store.Position = UDim2.new(0.514908552, 0, 0.299316287, 0)
  408. Store.Size = UDim2.new(0, 95, 0, 40)
  409. Store.Font = Enum.Font.SourceSans
  410. Store.Text = "Store Axe"
  411. Store.TextColor3 = Color3.new(0, 0, 0)
  412. Store.TextSize = 14
  413.  
  414. Restore.Name = "Restore"
  415. Restore.Parent = MainFrame
  416. Restore.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  417. Restore.BorderSizePixel = 2
  418. Restore.Position = UDim2.new(0.51270771, 0, 0.528562546, 0)
  419. Restore.Size = UDim2.new(0, 95, 0, 40)
  420. Restore.Font = Enum.Font.SourceSans
  421. Restore.Text = "Restore Axe"
  422. Restore.TextColor3 = Color3.new(0, 0, 0)
  423. Restore.TextSize = 14
  424.  
  425. DropAxes.Name = "Drop Axes"
  426. DropAxes.Parent = MainFrame
  427. DropAxes.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  428. DropAxes.BorderSizePixel = 2
  429. DropAxes.Position = UDim2.new(0.514981687, 0, 0.774269283, 0)
  430. DropAxes.Size = UDim2.new(0, 95, 0, 40)
  431. DropAxes.Font = Enum.Font.SourceSans
  432. DropAxes.Text = "Drop Axes"
  433. DropAxes.TextColor3 = Color3.new(0, 0, 0)
  434. DropAxes.TextSize = 14
  435.  
  436. Load.Name = "Load"
  437. Load.Parent = MainFrame
  438. Load.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  439. Load.BorderSizePixel = 2
  440. Load.Position = UDim2.new(0.0410686135, 0, 0.530083239, 0)
  441. Load.Size = UDim2.new(0, 95, 0, 40)
  442. Load.Font = Enum.Font.SourceSans
  443. Load.Text = "Load Slot"
  444. Load.TextColor3 = Color3.new(0, 0, 0)
  445. Load.TextSize = 14
  446.  
  447. CountAxes.Name = "Count Axes"
  448. CountAxes.Parent = MainFrame
  449. CountAxes.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  450. CountAxes.BorderSizePixel = 2
  451. CountAxes.Position = UDim2.new(0.510633886, 0, 0.0688429475, 0)
  452. CountAxes.Size = UDim2.new(0, 95, 0, 40)
  453. CountAxes.Font = Enum.Font.SourceSans
  454. CountAxes.Text = "Count Axes"
  455. CountAxes.TextColor3 = Color3.new(0, 0, 0)
  456. CountAxes.TextSize = 14
  457.  
  458. Slot.Name = "Slot"
  459. Slot.Parent = MainFrame
  460. Slot.BackgroundColor3 = Color3.new(0.411765, 0.411765, 0.411765)
  461. Slot.BorderSizePixel = 2
  462. Slot.Position = UDim2.new(0.0410686322, 0, 0.0697674453, 0)
  463. Slot.Size = UDim2.new(0, 94, 0, 39)
  464. Slot.Font = Enum.Font.SourceSans
  465. Slot.Text = "Slot Number"
  466. Slot.TextColor3 = Color3.new(0, 0, 0)
  467. Slot.TextSize = 14
  468.  
  469. --Locals
  470. local MoneyCooldown = false
  471. local CurrentSlot = game.Players.LocalPlayer:WaitForChild("CurrentSaveSlot").Value
  472. local ScriptLoadOrSave = false
  473. local CurrentlySavingOrLoading = game.Players.LocalPlayer:WaitForChild("CurrentlySavingOrLoading")
  474.  
  475. --Functions
  476. local function CheckIfSlotAvailable(Slot)
  477. for a,b in pairs(game.ReplicatedStorage.LoadSaveRequests.GetMetaData:InvokeServer(game.Players.LocalPlayer)) do
  478. if a == Slot then
  479. for c,d in pairs(b) do
  480. if c == "NumSaves" and d ~= 0 then
  481. return true
  482. else
  483. return false
  484. end
  485. end
  486. end
  487. end
  488. end
  489.  
  490. local function CheckSlotNumber() --Checks if the slot number is right
  491. 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
  492. local SlotNumber = tonumber(Slot.Text)
  493. return SlotNumber
  494. else return false
  495. end
  496. end
  497.  
  498. local function SendNotification(Title,Text,Duration) -- Sends Notification in the bottom right of the screen
  499. game.StarterGui:SetCore("SendNotification", {
  500. Title = Title;
  501. Text = Text;
  502. Icon = nil;
  503. Duration = Duration
  504. })
  505. end
  506.  
  507. SaveSlot.MouseButton1Down:connect(function() --Saves the slot that you want
  508. local CheckSlot = CheckSlotNumber()
  509. if CheckSlot ~= false then
  510. if CurrentSlot ~= -1 then
  511. ScriptLoadOrSave = true
  512. local SaveSlot = game.ReplicatedStorage.LoadSaveRequests.RequestSave:InvokeServer(CheckSlot)
  513. if SaveSlot == true then
  514. SendNotification("Save Notification", "Saved your Slot", 2)
  515. wait(.5)
  516. ScriptLoadOrSave = false
  517. elseif SaveSlot == false then
  518. SendNotification("Already Saving", "Saving/Loading is currently in Progress", 1)
  519. wait(.5)
  520. ScriptLoadOrSave = false
  521. end
  522. else
  523. SendNotification("Error", "Load Your Slot First before saving", 1)
  524. end
  525. else
  526. SendNotification("Incorrect Slot", "Enter a number in the upper field", 1)
  527. end
  528. end)
  529.  
  530. Load.MouseButton1Down:connect(function() --Loads the slot you want
  531. ScriptLoadOrSave = true
  532. local CheckSlot = CheckSlotNumber()
  533. if CheckSlot ~= false then
  534. if CheckIfSlotAvailable(CheckSlot) == true then
  535. local LoadSlot = game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(CheckSlot)
  536. if LoadSlot == false then
  537. SendNotification("Cooldown Notification", "You aren't abled to load now", 1)
  538. end
  539. if LoadSlot == true then
  540. SendNotification("Reload Notification", "Loaded Your Slot", 2)
  541. CurrentSlot = CheckSlot
  542. end
  543. else
  544. SendNotification("Slot not Available", "This Slot is not Available, please choose another slot", 2)
  545. end
  546. else
  547. SendNotification("Incorrect Slot", "Enter a Valid number in the upper field", 1)
  548. end
  549. ScriptLoadOrSave = false
  550. end)
  551.  
  552. Store.MouseButton1Down:connect(function() --Stores the Axes somewhere so you can restore them later
  553. Amount = 0
  554. for a,b in pairs(game.Players.LocalPlayer.Backpack:GetChildren())do
  555. if b.Name ~= "BlueprintTool" and b.Name == "Tool" then
  556. b.Parent = game.Players.LocalPlayer
  557. Amount = Amount + 1
  558. end
  559. end
  560. SendNotification("Store Notification", "Stored "..Amount.." Axes, you can restore them later", 2)
  561. end)
  562.  
  563. Restore.MouseButton1Down:connect(function() --Restores the axes that you stored with the Store function
  564. Amount = 0
  565. for a,b in pairs(game.Players.LocalPlayer:GetChildren()) do
  566. if b.Name ~= "BlueprintTool" and b.Name == "Tool" then
  567. b.Parent = game.Players.LocalPlayer.Backpack
  568. Amount = Amount + 1
  569. end
  570. end
  571. SendNotification("Restore Notification", "Restored "..Amount.." Axes that you Stored", 2)
  572. end)
  573.  
  574. CountAxes.MouseButton1Down:connect(function() --Counts Axes in your Backpack (Equiped Axes dont Count)
  575. Amount = 0
  576. for a,b in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  577. if b.Name ~= "BlueprintTool" and b.Name == "Tool" then
  578. Amount = Amount + 1
  579. end
  580. end
  581. SendNotification("Axe Amount", "You have "..Amount.." Axes in your Backpack",2)
  582. end)
  583.  
  584. DropAxes.MouseButton1Down:connect(function() --Drops all your Axes
  585. Amount = 0
  586. for a,b in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  587. if b.Name ~= "BlueprintTool" and b.Name == "Tool" then
  588. game.ReplicatedStorage.Interaction.ClientInteracted:FireServer(b, "Drop tool", game.Players.LocalPlayer.Character.Head.CFrame)
  589. Amount = Amount + 1
  590. end
  591. end
  592. SendNotification("Axe Dropped", "Dropped "..Amount.." Axes from your Backpack",5)
  593. end)
  594.  
  595. DMoney.MouseButton1Down:connect(function() --Sends the money and will come back after around 2 mins
  596. if MoneyCooldown == true then
  597. SendNotification("Cooldown Notification", "Wait for your Money to come back",2)
  598. return
  599. elseif MoneyCooldown == false then
  600. MoneyCooldown = true
  601. SendNotification("Money Sent", "Wait about 2 minutes for your Money to come back", 5)
  602. game.ReplicatedStorage.Transactions.ClientToServer.Donate:InvokeServer(game.Players.LocalPlayer, game.Players.LocalPlayer.leaderstats.Money.Value, 1)
  603. SendNotification("Money Received", "You received your money that you have sent earlier", 5)
  604. MoneyCooldown = false
  605. end
  606. end)
  607.  
  608. --Anti Overwrite Slot (Sub-Function)
  609. while wait(.15) do
  610. if CurrentlySavingOrLoading.Value == true and ScriptLoadOrSave == false then
  611. repeat
  612. wait(1)
  613. until CurrentlySavingOrLoading.Value == false
  614. wait(1)
  615. CurrentSlot = game.Players.LocalPlayer.CurrentSaveSlot.Value
  616. print(CurrentSlot)
  617. end
  618. end
Add Comment
Please, Sign In to add comment