Advertisement
tristanlol123

【🔨】LT2 Gui Hack Script Autobuy

Oct 3rd, 2021 (edited)
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.02 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Main = Instance.new("Frame")
  3. local Buy = Instance.new("TextButton")
  4. local Quan = Instance.new("TextBox")
  5. local Item = Instance.new("TextBox")
  6. local Frame = Instance.new("Frame")
  7. local Close = Instance.new("TextButton")
  8.  
  9. ScreenGui.Parent = game.CoreGui
  10.  
  11. Main.Name = "Main"
  12. Main.Parent = ScreenGui
  13. Main.BackgroundColor3 = Color3.new(0.0745098, 0.772549, 0.772549)
  14. Main.BorderSizePixel = 0
  15. Main.Position = UDim2.new(0.39054966, 0, 0.204301074, 0)
  16. Main.Size = UDim2.new(0, 226, 0, 219)
  17. Main.Active = true
  18. Main.Draggable = true
  19.  
  20. Buy.Name = "Buy"
  21. Buy.Parent = Main
  22. Buy.BackgroundColor3 = Color3.new(0.92549, 0, 0.0117647)
  23. Buy.BorderColor3 = Color3.new(0, 0, 0)
  24. Buy.BorderSizePixel = 3
  25. Buy.Position = UDim2.new(0.0663716868, 0, 0.753424644, 0)
  26. Buy.Size = UDim2.new(0, 195, 0, 45)
  27. Buy.Font = Enum.Font.Bodoni
  28. Buy.Text = "Buy Item"
  29. Buy.TextColor3 = Color3.new(0, 0, 0)
  30. Buy.TextScaled = true
  31. Buy.TextSize = 14
  32. Buy.TextWrapped = true
  33.  
  34. Quan.Name = "Quan"
  35. Quan.Parent = Main
  36. Quan.BackgroundColor3 = Color3.new(0.145098, 0.619608, 0.603922)
  37. Quan.BorderSizePixel = 3
  38. Quan.Position = UDim2.new(0.292035401, 0, 0.219178081, 0)
  39. Quan.Size = UDim2.new(0, 94, 0, 42)
  40. Quan.Font = Enum.Font.SourceSans
  41. Quan.PlaceholderText = "Quantity Here"
  42. Quan.Text = "1"
  43. Quan.TextColor3 = Color3.new(0, 0, 0)
  44. Quan.TextScaled = true
  45. Quan.TextSize = 14
  46. Quan.TextWrapped = true
  47.  
  48. Item.Name = "Item"
  49. Item.Parent = Main
  50. Item.BackgroundColor3 = Color3.new(0.145098, 0.619608, 0.603922)
  51. Item.BorderSizePixel = 3
  52. Item.Position = UDim2.new(0.18141593, 0, 0.493150711, 0)
  53. Item.Size = UDim2.new(0, 144, 0, 42)
  54. Item.Font = Enum.Font.SourceSans
  55. Item.PlaceholderText = "Item Name Here"
  56. Item.Text = ""
  57. Item.TextColor3 = Color3.new(0, 0, 0)
  58. Item.TextScaled = true
  59. Item.TextSize = 14
  60. Item.TextWrapped = true
  61.  
  62. Frame.Parent = Main
  63. Frame.BackgroundColor3 = Color3.new(0.113725, 0.227451, 0.85098)
  64. Frame.BorderSizePixel = 0
  65. Frame.Position = UDim2.new(0, -6, 0, 0)
  66. Frame.Size = UDim2.new(0, 237, 0, 37)
  67.  
  68. Close.Name = "Close"
  69. Close.Parent = Frame
  70. Close.BackgroundColor3 = Color3.new(1, 0, 0)
  71. Close.BorderSizePixel = 0
  72. Close.Position = UDim2.new(0, 194, 0, 0)
  73. Close.Size = UDim2.new(0, 43, 0, 37)
  74. Close.Font = Enum.Font.GothamBold
  75. Close.Text = "X"
  76. Close.TextColor3 = Color3.new(0, 0, 0)
  77. Close.TextScaled = true
  78. Close.TextSize = 14
  79. Close.TextWrapped = true
  80.  
  81.  
  82. -- Scripts:
  83.  
  84. function Sound11()
  85. local s = Instance.new("Sound")
  86.  
  87. s.Name = "Sound"
  88. s.SoundId = "rbxassetid://408524543"
  89. s.Volume = 2
  90. s.archivable = false
  91. s.Parent = game.Workspace
  92. s:play()
  93. end
  94. function Sound22()
  95. local Song1 = Instance.new("Sound")
  96.  
  97. Song1.Name = "Song1"
  98. Song1.SoundId = "rbxassetid://452267918"
  99. Song1.Volume = 2
  100. Song1.archivable = false
  101. Song1.Parent = game.Workspace
  102. Song1:play()
  103. end
  104.  
  105. Buy.MouseEnter:connect(function()
  106. Sound11()
  107. Buy.TextColor3 = Color3.new(0.92549, 0, 0.0117647)
  108. Buy.BackgroundColor3 = Color3.new(0, 0, 0)
  109. Buy.BorderColor3 = Color3.new(0.92549, 0, 0.0117647)
  110. end)
  111. Buy.MouseLeave:Connect(function()
  112. Buy.TextColor3 = Color3.new(0, 0, 0)
  113. Buy.BackgroundColor3 = Color3.new(0.92549, 0, 0.0117647)
  114. Buy.BorderColor3 = Color3.new(0, 0, 0)
  115. end)
  116. Close.MouseEnter:connect(function()
  117. Sound11()
  118. Close.BackgroundColor3 = Color3.new(0, 0, 0)
  119. Close.TextColor3 = Color3.new(1, 0, 0)
  120. end)
  121. Close.MouseLeave:Connect(function()
  122. Close.BackgroundColor3 = Color3.new(1, 0, 0)
  123. Close.TextColor3 = Color3.new(0, 0, 0)
  124. end)
  125.  
  126. function Tlprt(XP,YP,ZP)
  127. -- Config How Many Blocks It Will Tp You Untill The Final Destination:
  128. local XTpEvery = 25
  129. local ZTpEvery = 25
  130. local YTpEvery = 25
  131. --Time to Tp Every:
  132. local Timer = 0.035
  133. --Script:
  134. local pos = game:GetService('Players').LocalPlayer.Character.HumanoidRootPart
  135. if pos.Position.X < XP then
  136. for x = pos.Position.X,XP,XTpEvery do
  137. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(x,pos.Position.Y,pos.Position.Z))
  138. local part = Instance.new("Part", workspace)
  139. part.Anchored = true
  140. part.Size = Vector3.new(10,0.1,10)
  141. part.Material = "Glass"
  142. part.BrickColor = BrickColor.Random()
  143. part.Transparency = 0.7
  144. part.Position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,-3.05,0)
  145. wait(Timer)
  146. part.Destroy(part)
  147. end
  148. else
  149. for x = pos.Position.X,XP,-XTpEvery do
  150. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(x,pos.Position.Y,pos.Position.Z))
  151. local part = Instance.new("Part", workspace)
  152. part.Anchored = true
  153. part.Size = Vector3.new(10,0.1,10)
  154. part.Material = "Glass"
  155. part.BrickColor = BrickColor.Random()
  156. part.Transparency = 0.7
  157. part.Position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,-3.05,0)
  158. wait(Timer)
  159. part.Destroy(part)
  160. end
  161. end
  162. if pos.Position.Z < ZP then
  163. for z = pos.Position.Z,ZP,ZTpEvery do
  164. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(pos.Position.X,pos.Position.Y,z))
  165. local part = Instance.new("Part", workspace)
  166. part.Anchored = true
  167. part.Size = Vector3.new(10,0.1,10)
  168. part.Material = "Glass"
  169. part.BrickColor = BrickColor.Random()
  170. part.Transparency = 0.7
  171. part.Position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,-3.05,0)
  172. wait(Timer)
  173. part.Destroy(part)
  174. end
  175. else
  176. for z = pos.Position.Z,ZP,-ZTpEvery do
  177. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(pos.Position.X,pos.Position.Y,z))
  178. local part = Instance.new("Part", workspace)
  179. part.Anchored = true
  180. part.Size = Vector3.new(10,0.1,10)
  181. part.Material = "Glass"
  182. part.BrickColor = BrickColor.Random()
  183. part.Transparency = 0.7
  184. part.Position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,-3.05,0)
  185. wait(Timer)
  186. part.Destroy(part)
  187. end
  188. end
  189. if pos.Position.Y < YP then
  190. for High = pos.Position.Y,YP,YTpEvery do
  191. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(pos.Position.X ,High ,pos.Position.Z))
  192. local part = Instance.new("Part", workspace)
  193. part.Anchored = true
  194. part.Size = Vector3.new(10,0.1,10)
  195. part.Material = "Glass"
  196. part.BrickColor = BrickColor.Random()
  197. part.Transparency = 0.7
  198. part.Position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,-3.05,0)
  199. wait(Timer)
  200. part.Destroy(part)
  201. end
  202. else
  203. for High = pos.Position.Y,YP,-YTpEvery do
  204. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(pos.Position.X ,High ,pos.Position.Z))
  205. local part = Instance.new("Part", workspace)
  206. part.Anchored = true
  207. part.Size = Vector3.new(10,0.1,10)
  208. part.Material = "Glass"
  209. part.BrickColor = BrickColor.Random()
  210. part.Transparency = 0.7
  211. part.Position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,-3.05,0)
  212. wait(Timer)
  213. part.Destroy(part)
  214. end
  215. end
  216. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(XP,YP,ZP))
  217. end
  218. Close.MouseButton1Down:connect(function()
  219. Sound22()
  220. Main.Visible = false
  221. end)
  222.  
  223.  
  224. Buy.MouseButton1Down:connect(function()
  225. Sound22()
  226. local Item = Item.Text
  227. local Quant = Quan.Text
  228.  
  229. local Base
  230. for i, v in pairs(game.Workspace.Properties:GetChildren()) do
  231. if v.Owner.Value == game.Players.LocalPlayer then
  232. Base = v.OriginSquare
  233. end
  234. end
  235.  
  236. if not game.ReplicatedStorage:FindFirstChild("Part") then
  237. local a = Instance.new("Part",game.ReplicatedStorage)
  238. game.Workspace.PlayerModels.ChildAdded:connect(function(v)
  239. local BaseC
  240. for i, v in pairs(game.Workspace.Properties:GetChildren()) do
  241. if v.Owner.Value == game.Players.LocalPlayer then
  242. BaseC = v.OriginSquare.CFrame + Vector3.new(0,5,0)
  243. end
  244. end
  245. if v:FindFirstChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then
  246. if string.find(v.Name, "Purchased by "..game.Players.LocalPlayer.Name) then
  247. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v.PrimaryPart)
  248. game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(v.PrimaryPart)
  249. wait()
  250. v.PrimaryPart.CFrame = BaseC
  251. wait()
  252. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v.PrimaryPart)
  253. game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(v.PrimaryPart)
  254. end
  255. end
  256. end)
  257. end
  258.  
  259. if game.Workspace.Stores:FindFirstChild("ShopItems") then
  260. for i,v in pairs(game.Workspace.Stores:GetDescendants()) do
  261. if v.Parent.Name == "ShopItems" then
  262. if v.Name == "Sawmill4L" then
  263. v.Parent.Name = "WoodRUs_"
  264. elseif v.Name == "Pickup1" then
  265. v.Parent.Name = "CarStore_"
  266. elseif v.Name == "LightBulb" then
  267. v.Parent.Name = "FurnitureStore_"
  268. elseif v.Name == "GateXOR" then
  269. v.Parent.Name = "LogicStore_"
  270. elseif v.Name == "CanOfWorms" then
  271. v.Parent.Name = "ShackShop_"
  272. elseif v.Name == "Painting8" then
  273. v.Parent.Name = "FineArt_"
  274. end
  275. end
  276. end
  277. end
  278.  
  279. function Drag(It)
  280. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(It)
  281. end
  282.  
  283. local Cframe
  284. for i,v in pairs(game.Workspace.Stores:GetChildren()) do
  285. if v:FindFirstChild(Item) then
  286. if v.Name == "WoodRUs_" then
  287. for i=1,Quant do
  288. Cframe = game.Workspace.Stores.WoodRUs.Counter
  289. Tlprt(v[Item].Main.Position.X + 3 ,v[Item].Main.Position.Y ,v[Item].Main.Position.Z + 3)
  290. Drag(v[Item])
  291. v[Item].Main.CFrame = Cframe.CFrame
  292. wait(0.1)
  293. Tlprt(v[Item].Main.Position.X + 3 ,v[Item].Main.Position.Y ,v[Item].Main.Position.Z + 3)
  294. wait(0.4)
  295. local A_1 =
  296. {
  297.     ["Character"] = game:GetService("Workspace").Stores.WoodRUs.Thom,
  298.     ["Name"] = "Thom",
  299.     ["ID"] = 11,
  300.     ["Dialog"] = game:GetService("Workspace").Stores.WoodRUs.Thom.Dialog
  301. }
  302. local A_2 = "ConfirmPurchase"
  303. local Event = game:GetService("ReplicatedStorage").NPCDialog.PlayerChatted
  304. Event:InvokeServer(A_1, A_2)
  305. wait(0.1)
  306. end
  307. break
  308. elseif v.Name == "CarStore_" then
  309. Cframe = game.Workspace.Stores.CarStore.Counter
  310. for i=1,Quant do
  311. Tlprt(v[Item].Main.Position.X + 3 ,v[Item].Main.Position.Y ,v[Item].Main.Position.Z + 3)
  312. Drag(v[Item])
  313. v[Item].Main.CFrame = Cframe.CFrame
  314. wait(0.1)
  315. Tlprt(v[Item].Main.Position.X + 3 ,v[Item].Main.Position.Y ,v[Item].Main.Position.Z + 3)
  316. wait(0.4)
  317. local A_1 =
  318. {
  319.     ["Character"] = game:GetService("Workspace").Stores.CarStore.Jenny,
  320.     ["Name"] = "Jenny",
  321.     ["ID"] = 12,
  322.     ["Dialog"] = game:GetService("Workspace").Stores.CarStore.Jenny.Dialog
  323. }
  324. local A_2 = "ConfirmPurchase"
  325. local Event = game:GetService("ReplicatedStorage").NPCDialog.PlayerChatted
  326. Event:InvokeServer(A_1, A_2)
  327. wait(0.1)
  328. end
  329. break
  330. elseif v.Name == "FurnitureStore_" then
  331. Cframe = game.Workspace.Stores.FurnitureStore.Counter
  332. for i=1,Quant do
  333. Tlprt(v[Item].Main.Position.X + 3 ,v[Item].Main.Position.Y ,v[Item].Main.Position.Z + 3)
  334. Drag(v[Item])
  335. v[Item].Main.CFrame = Cframe.CFrame
  336. wait(0.1)
  337. Tlprt(v[Item].Main.Position.X + 3 ,v[Item].Main.Position.Y ,v[Item].Main.Position.Z + 3)
  338. wait(0.4)
  339. local A_1 =
  340. {
  341.     ["Character"] = game:GetService("Workspace").Stores.FurnitureStore.Corey,
  342.     ["Name"] = "Corey",
  343.     ["ID"] = 10,
  344.     ["Dialog"] = game:GetService("Workspace").Stores.FurnitureStore.Corey.Dialog
  345. }
  346. local A_2 = "ConfirmPurchase"
  347. local Event = game:GetService("ReplicatedStorage").NPCDialog.PlayerChatted
  348. Event:InvokeServer(A_1, A_2)
  349. wait(0.1)
  350. end
  351. break
  352. elseif v.Name == "LogicStore_" then
  353. Cframe = game.Workspace.Stores.LogicStore.Counter
  354. for i=1,Quant do
  355. Tlprt(v[Item].Main.Position.X + 3 ,v[Item].Main.Position.Y ,v[Item].Main.Position.Z + 3)
  356. Drag(v[Item])
  357. v[Item].Main.CFrame = Cframe.CFrame
  358. wait(0.1)
  359. Tlprt(v[Item].Main.Position.X + 3 ,v[Item].Main.Position.Y ,v[Item].Main.Position.Z + 3)
  360. wait(0.4)
  361. local A_1 =
  362. {
  363.     ["Character"] = game:GetService("Workspace").Stores.LogicStore.Lincoln,
  364.     ["Name"] = "Lincoln",
  365.     ["ID"] = 15,
  366.     ["Dialog"] = game:GetService("Workspace").Stores.LogicStore.Lincoln.Dialog
  367. }
  368. local A_2 = "ConfirmPurchase"
  369. local Event = game:GetService("ReplicatedStorage").NPCDialog.PlayerChatted
  370. Event:InvokeServer(A_1, A_2)
  371. wait(0.1)
  372. end
  373. break
  374. elseif v.Name == "ShackShop_" then
  375. Cframe = game.Workspace.Stores.ShackShop.Counter
  376. for i=1,Quant do
  377. Tlprt(v[Item].Main.Position.X + 3 ,v[Item].Main.Position.Y ,v[Item].Main.Position.Z + 3)
  378. Drag(v[Item])
  379. v[Item].Main.CFrame = Cframe.CFrame
  380. wait(0.1)
  381. Tlprt(v[Item].Main.Position.X + 3 ,v[Item].Main.Position.Y ,v[Item].Main.Position.Z + 3)
  382. wait(0.4)
  383. local A_1 =
  384. {
  385.     ["Character"] = game:GetService("Workspace").Stores.ShackShop.Bob,
  386.     ["Name"] = "Bob",
  387.     ["ID"] = 13,
  388.     ["Dialog"] = game:GetService("Workspace").Stores.ShackShop.Bob.Dialog
  389. }
  390. local A_2 = "ConfirmPurchase"
  391. local Event = game:GetService("ReplicatedStorage").NPCDialog.PlayerChatted
  392. Event:InvokeServer(A_1, A_2)
  393. wait(0.1)
  394. end
  395. break
  396. elseif v.Name == "FineArt_" then
  397. Cframe = game.Workspace.Stores.FineArt.Counter
  398. for i=1,Quant do
  399. Tlprt(v[Item].Main.Position.X + 3 ,v[Item].Main.Position.Y ,v[Item].Main.Position.Z + 3)
  400. Drag(v[Item])
  401. v[Item].Main.CFrame = Cframe.CFrame
  402. wait(0.1)
  403. Tlprt(v[Item].Main.Position.X + 3 ,v[Item].Main.Position.Y ,v[Item].Main.Position.Z + 3)
  404. wait(0.4)
  405. local A_1 =
  406. {
  407.     ["Character"] = game:GetService("Workspace").Stores.FineArt.Timothy,
  408.     ["Name"] = "Timothy",
  409.     ["ID"] = 14,
  410.     ["Dialog"] = game:GetService("Workspace").Stores.FineArt.Timothy.Dialog
  411. }
  412. local A_2 = "ConfirmPurchase"
  413. local Event = game:GetService("ReplicatedStorage").NPCDialog.PlayerChatted
  414. Event:InvokeServer(A_1, A_2)
  415. wait(0.1)
  416. end
  417. break
  418. end
  419. end
  420. end
  421. Tlprt(Base.Position.X, Base.Position.Y, Base.Position.Z)
  422. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement