Advertisement
Maks_gaming

Untitled

Jan 26th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.69 KB | None | 0 0
  1. --ты что тут делаешь мальчик
  2. local Admin = Instance.new("ScreenGui")
  3. local Open = Instance.new("TextButton")
  4. local DropShadow = Instance.new("Frame")
  5. local TextLabel = Instance.new("TextLabel")
  6. local Frame = Instance.new("Frame")
  7. local Header = Instance.new("TextLabel")
  8. local DropShadow_2 = Instance.new("Frame")
  9. local Main = Instance.new("Frame")
  10. local Header_2 = Instance.new("TextLabel")
  11. local Spawn = Instance.new("TextButton")
  12. local TextLabel_2 = Instance.new("TextLabel")
  13. local Close = Instance.new("TextButton")
  14. local TextLabel_3 = Instance.new("TextLabel")
  15. local ItemName = Instance.new("TextBox")
  16. local Info = Instance.new("TextLabel")
  17. local ItemAmount = Instance.new("TextBox")
  18. local Blueprints = Instance.new("TextButton")
  19. local TextLabel_4 = Instance.new("TextLabel")
  20. local MaxLand = Instance.new("TextButton")
  21. local TextLabel_5 = Instance.new("TextLabel")
  22. local Rejoin = Instance.new("TextButton")
  23. local TextLabel_6 = Instance.new("TextLabel")
  24. local SellPlanks = Instance.new("TextButton")
  25. local TextLabel_7 = Instance.new("TextLabel")
  26. local SellWood = Instance.new("TextButton")
  27. local TextLabel_8 = Instance.new("TextLabel")
  28. local TPPlanks = Instance.new("TextButton")
  29. local TextLabel_9 = Instance.new("TextLabel")
  30. local TPPlot = Instance.new("TextButton")
  31. local TextLabel_10 = Instance.new("TextLabel")
  32. local TPWood = Instance.new("TextButton")
  33. local TextLabel_11 = Instance.new("TextLabel")
  34. --Properties:
  35. Admin.Name = "Admin"
  36. Admin.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  37.  
  38. Open.Name = "Open"
  39. Open.Parent = Admin
  40. Open.BackgroundColor3 = Color3.new(1, 1, 1)
  41. Open.BorderSizePixel = 0
  42. Open.Position = UDim2.new(0.925587535, -45, -0.00569259981, 10)
  43. Open.Selectable = false
  44. Open.Size = UDim2.new(0, 90, 0, 30)
  45. Open.ZIndex = 5
  46. Open.Font = Enum.Font.SourceSans
  47. Open.Text = ""
  48. Open.TextSize = 18
  49.  
  50. DropShadow.Name = "DropShadow"
  51. DropShadow.Parent = Open
  52. DropShadow.BackgroundColor3 = Color3.new(0, 0, 0)
  53. DropShadow.BorderSizePixel = 0
  54. DropShadow.Position = UDim2.new(0, 4, 0, 4)
  55. DropShadow.Size = UDim2.new(1, 0, 1, 0)
  56. DropShadow.ZIndex = 4
  57.  
  58. TextLabel.Parent = Open
  59. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  60. TextLabel.BackgroundTransparency = 1
  61. TextLabel.BorderSizePixel = 0
  62. TextLabel.Position = UDim2.new(0, 17, 0, 0)
  63. TextLabel.Size = UDim2.new(1, -30, 1, 0)
  64. TextLabel.ZIndex = 5
  65. TextLabel.Font = Enum.Font.ArialBold
  66. TextLabel.Text = "Functions"
  67. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  68. TextLabel.TextScaled = true
  69. TextLabel.TextSize = 24
  70. TextLabel.TextWrapped = true
  71.  
  72. Frame.Parent = Admin
  73. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  74. Frame.BorderSizePixel = 0
  75. Frame.Position = UDim2.new(0.348070502, -150, 0.194617435, -22)
  76. Frame.Size = UDim2.new(0, 329, 0, 365)
  77. Frame.Visible = false
  78. Frame.ZIndex = 5
  79.  
  80. Header.Name = "Header"
  81. Header.Parent = Frame
  82. Header.BackgroundColor3 = Color3.new(1, 1, 1)
  83. Header.BackgroundTransparency = 1
  84. Header.BorderSizePixel = 0
  85. Header.Position = UDim2.new(0, 0, 0, 4)
  86. Header.Size = UDim2.new(1, 0, 0, 24)
  87. Header.ZIndex = 6
  88. Header.Font = Enum.Font.ArialBold
  89. Header.Text = "Other"
  90. Header.TextColor3 = Color3.new(0, 0, 0)
  91. Header.TextSize = 24
  92. Header.TextWrapped = true
  93.  
  94. DropShadow_2.Name = "DropShadow"
  95. DropShadow_2.Parent = Frame
  96. DropShadow_2.BackgroundColor3 = Color3.new(0, 0, 0)
  97. DropShadow_2.BorderSizePixel = 0
  98. DropShadow_2.Position = UDim2.new(0, 4, 0, 4)
  99. DropShadow_2.Size = UDim2.new(1, 0, 1, 0)
  100. DropShadow_2.ZIndex = 4
  101.  
  102. Main.Name = "Main"
  103. Main.Parent = Frame
  104. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  105. Main.BorderSizePixel = 0
  106. Main.Position = UDim2.new(1.63917959, -150, 0.0702373236, -22)
  107. Main.Size = UDim2.new(0, 293, 0, 142)
  108. Main.ZIndex = 5
  109.  
  110. Header_2.Name = "Header"
  111. Header_2.Parent = Main
  112. Header_2.BackgroundColor3 = Color3.new(1, 1, 1)
  113. Header_2.BackgroundTransparency = 1
  114. Header_2.BorderSizePixel = 0
  115. Header_2.Position = UDim2.new(0, 0, 0, 4)
  116. Header_2.Size = UDim2.new(1, 0, 0, 24)
  117. Header_2.ZIndex = 6
  118. Header_2.Font = Enum.Font.ArialBold
  119. Header_2.Text = "Item Spawner"
  120. Header_2.TextColor3 = Color3.new(0, 0, 0)
  121. Header_2.TextSize = 24
  122. Header_2.TextWrapped = true
  123.  
  124. Spawn.Name = "Spawn"
  125. Spawn.Parent = Main
  126. Spawn.BackgroundColor3 = Color3.new(1, 1, 1)
  127. Spawn.BorderSizePixel = 0
  128. Spawn.Position = UDim2.new(0.49905628, -75, -0.479249299, 160)
  129. Spawn.Size = UDim2.new(0, 150, 0, 50)
  130. Spawn.ZIndex = 6
  131. Spawn.Font = Enum.Font.SourceSans
  132. Spawn.Text = ""
  133. Spawn.TextSize = 14
  134.  
  135. TextLabel_2.Parent = Spawn
  136. TextLabel_2.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  137. TextLabel_2.BorderSizePixel = 0
  138. TextLabel_2.Position = UDim2.new(0, 8, 0, 8)
  139. TextLabel_2.Size = UDim2.new(1, -16, 1, -16)
  140. TextLabel_2.ZIndex = 6
  141. TextLabel_2.Font = Enum.Font.ArialBold
  142. TextLabel_2.Text = "Spawn"
  143. TextLabel_2.TextColor3 = Color3.new(0, 0, 0)
  144. TextLabel_2.TextSize = 24
  145. TextLabel_2.TextWrapped = true
  146.  
  147. Close.Name = "Close"
  148. Close.Parent = Main
  149. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  150. Close.BorderSizePixel = 0
  151. Close.Position = UDim2.new(-0.75624603, -75, 1.06409204, 160)
  152. Close.Size = UDim2.new(0, 150, 0, 50)
  153. Close.ZIndex = 6
  154. Close.Font = Enum.Font.SourceSans
  155. Close.Text = ""
  156. Close.TextSize = 14
  157.  
  158. TextLabel_3.Parent = Close
  159. TextLabel_3.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  160. TextLabel_3.BorderSizePixel = 0
  161. TextLabel_3.Position = UDim2.new(0, 8, 0, 8)
  162. TextLabel_3.Size = UDim2.new(1, -16, 1, -16)
  163. TextLabel_3.ZIndex = 6
  164. TextLabel_3.Font = Enum.Font.ArialBold
  165. TextLabel_3.Text = "Close"
  166. TextLabel_3.TextColor3 = Color3.new(0, 0, 0)
  167. TextLabel_3.TextSize = 24
  168. TextLabel_3.TextWrapped = true
  169.  
  170. ItemName.Name = "ItemName"
  171. ItemName.Parent = Main
  172. ItemName.Active = false
  173. ItemName.BackgroundColor3 = Color3.new(1, 1, 1)
  174. ItemName.Position = UDim2.new(0.0448339656, 0, 0.257395774, 0)
  175. ItemName.Selectable = false
  176. ItemName.Size = UDim2.new(0, 171, 0, 38)
  177. ItemName.ZIndex = 6
  178. ItemName.ClearTextOnFocus = false
  179. ItemName.Font = Enum.Font.SourceSans
  180. ItemName.PlaceholderText = "ItemName"
  181. ItemName.Text = ""
  182. ItemName.TextColor3 = Color3.new(0, 0, 0)
  183. ItemName.TextScaled = true
  184. ItemName.TextSize = 14
  185. ItemName.TextWrapped = true
  186.  
  187. Info.Name = "Info"
  188. Info.Parent = Main
  189. Info.BackgroundColor3 = Color3.new(1, 1, 1)
  190. Info.BackgroundTransparency = 1
  191. Info.BorderSizePixel = 0
  192. Info.Position = UDim2.new(0, -1, 0, 75)
  193. Info.Size = UDim2.new(0.974129438, 0, 0, 24)
  194. Info.ZIndex = 6
  195. Info.Font = Enum.Font.ArialBold
  196. Info.Text = "This function is spawning only unboxed items!"
  197. Info.TextColor3 = Color3.new(0.427451, 0.427451, 0.427451)
  198. Info.TextScaled = true
  199. Info.TextSize = 24
  200. Info.TextWrapped = true
  201.  
  202. ItemAmount.Name = "ItemAmount"
  203. ItemAmount.Parent = Main
  204. ItemAmount.Active = false
  205. ItemAmount.BackgroundColor3 = Color3.new(1, 1, 1)
  206. ItemAmount.Position = UDim2.new(0.65575552, 0, 0.257395774, 0)
  207. ItemAmount.Selectable = false
  208. ItemAmount.Size = UDim2.new(0, 88, 0, 38)
  209. ItemAmount.ZIndex = 6
  210. ItemAmount.ClearTextOnFocus = false
  211. ItemAmount.Font = Enum.Font.SourceSans
  212. ItemAmount.PlaceholderText = "Amount"
  213. ItemAmount.Text = ""
  214. ItemAmount.TextColor3 = Color3.new(0, 0, 0)
  215. ItemAmount.TextScaled = true
  216. ItemAmount.TextSize = 14
  217. ItemAmount.TextWrapped = true
  218.  
  219. Blueprints.Name = "Blueprints"
  220. Blueprints.Parent = Main
  221. Blueprints.BackgroundColor3 = Color3.new(1, 1, 1)
  222. Blueprints.BorderSizePixel = 0
  223. Blueprints.Position = UDim2.new(-1.0303005, -75, -0.226793751, 160)
  224. Blueprints.Size = UDim2.new(0, 150, 0, 50)
  225. Blueprints.ZIndex = 6
  226. Blueprints.Font = Enum.Font.SourceSans
  227. Blueprints.Text = ""
  228. Blueprints.TextSize = 14
  229.  
  230. TextLabel_4.Parent = Blueprints
  231. TextLabel_4.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  232. TextLabel_4.BorderSizePixel = 0
  233. TextLabel_4.Position = UDim2.new(0, 8, 0, 8)
  234. TextLabel_4.Size = UDim2.new(1, -16, 1, -16)
  235. TextLabel_4.ZIndex = 6
  236. TextLabel_4.Font = Enum.Font.ArialBold
  237. TextLabel_4.Text = "Get Blueprints"
  238. TextLabel_4.TextColor3 = Color3.new(0, 0, 0)
  239. TextLabel_4.TextScaled = true
  240. TextLabel_4.TextSize = 24
  241. TextLabel_4.TextWrapped = true
  242.  
  243. MaxLand.Name = "MaxLand"
  244. MaxLand.Parent = Main
  245. MaxLand.BackgroundColor3 = Color3.new(1, 1, 1)
  246. MaxLand.BorderSizePixel = 0
  247. MaxLand.Position = UDim2.new(-0.519954801, -75, 0.118509442, 160)
  248. MaxLand.Size = UDim2.new(0, 150, 0, 50)
  249. MaxLand.ZIndex = 6
  250. MaxLand.Font = Enum.Font.SourceSans
  251. MaxLand.Text = ""
  252. MaxLand.TextSize = 14
  253.  
  254. TextLabel_5.Parent = MaxLand
  255. TextLabel_5.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  256. TextLabel_5.BorderSizePixel = 0
  257. TextLabel_5.Position = UDim2.new(0, 8, 0, 8)
  258. TextLabel_5.Size = UDim2.new(1, -16, 1, -16)
  259. TextLabel_5.ZIndex = 6
  260. TextLabel_5.Font = Enum.Font.ArialBold
  261. TextLabel_5.Text = "MaximizeLand"
  262. TextLabel_5.TextColor3 = Color3.new(0, 0, 0)
  263. TextLabel_5.TextScaled = true
  264. TextLabel_5.TextSize = 24
  265. TextLabel_5.TextWrapped = true
  266.  
  267. Rejoin.Name = "Rejoin"
  268. Rejoin.Parent = Main
  269. Rejoin.BackgroundColor3 = Color3.new(1, 1, 1)
  270. Rejoin.BorderSizePixel = 0
  271. Rejoin.Position = UDim2.new(-1.03300095, -75, 0.119789958, 160)
  272. Rejoin.Size = UDim2.new(0, 150, 0, 50)
  273. Rejoin.ZIndex = 6
  274. Rejoin.Font = Enum.Font.SourceSans
  275. Rejoin.Text = ""
  276. Rejoin.TextSize = 14
  277.  
  278. TextLabel_6.Parent = Rejoin
  279. TextLabel_6.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  280. TextLabel_6.BorderSizePixel = 0
  281. TextLabel_6.Position = UDim2.new(0, 8, 0, 8)
  282. TextLabel_6.Size = UDim2.new(1, -16, 1, -16)
  283. TextLabel_6.ZIndex = 6
  284. TextLabel_6.Font = Enum.Font.ArialBold
  285. TextLabel_6.Text = "Rejoin"
  286. TextLabel_6.TextColor3 = Color3.new(0, 0, 0)
  287. TextLabel_6.TextSize = 24
  288. TextLabel_6.TextWrapped = true
  289.  
  290. SellPlanks.Name = "SellPlanks"
  291. SellPlanks.Parent = Main
  292. SellPlanks.BackgroundColor3 = Color3.new(1, 1, 1)
  293. SellPlanks.BorderSizePixel = 0
  294. SellPlanks.Position = UDim2.new(-0.516150236, -75, -0.931019127, 160)
  295. SellPlanks.Size = UDim2.new(0, 150, 0, 50)
  296. SellPlanks.ZIndex = 6
  297. SellPlanks.Font = Enum.Font.SourceSans
  298. SellPlanks.Text = ""
  299. SellPlanks.TextSize = 14
  300.  
  301. TextLabel_7.Parent = SellPlanks
  302. TextLabel_7.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  303. TextLabel_7.BorderSizePixel = 0
  304. TextLabel_7.Position = UDim2.new(0, 8, 0, 8)
  305. TextLabel_7.Size = UDim2.new(1, -16, 1, -16)
  306. TextLabel_7.ZIndex = 6
  307. TextLabel_7.Font = Enum.Font.ArialBold
  308. TextLabel_7.Text = "Sell Planks"
  309. TextLabel_7.TextColor3 = Color3.new(0, 0, 0)
  310. TextLabel_7.TextSize = 24
  311. TextLabel_7.TextWrapped = true
  312.  
  313. SellWood.Name = "SellWood"
  314. SellWood.Parent = Main
  315. SellWood.BackgroundColor3 = Color3.new(1, 1, 1)
  316. SellWood.BorderSizePixel = 0
  317. SellWood.Position = UDim2.new(-0.515324593, -75, -0.574133992, 160)
  318. SellWood.Size = UDim2.new(0, 150, 0, 50)
  319. SellWood.ZIndex = 6
  320. SellWood.Font = Enum.Font.SourceSans
  321. SellWood.Text = ""
  322. SellWood.TextSize = 14
  323.  
  324. TextLabel_8.Parent = SellWood
  325. TextLabel_8.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  326. TextLabel_8.BorderSizePixel = 0
  327. TextLabel_8.Position = UDim2.new(0, 8, 0, 8)
  328. TextLabel_8.Size = UDim2.new(1, -16, 1, -16)
  329. TextLabel_8.ZIndex = 6
  330. TextLabel_8.Font = Enum.Font.ArialBold
  331. TextLabel_8.Text = "Sell Wood"
  332. TextLabel_8.TextColor3 = Color3.new(0, 0, 0)
  333. TextLabel_8.TextSize = 24
  334. TextLabel_8.TextWrapped = true
  335.  
  336. TPPlanks.Name = "TPPlanks"
  337. TPPlanks.Parent = Main
  338. TPPlanks.BackgroundColor3 = Color3.new(1, 1, 1)
  339. TPPlanks.BorderSizePixel = 0
  340. TPPlanks.Position = UDim2.new(-1.02755868, -75, -0.933288991, 160)
  341. TPPlanks.Size = UDim2.new(0, 150, 0, 50)
  342. TPPlanks.ZIndex = 6
  343. TPPlanks.Font = Enum.Font.SourceSans
  344. TPPlanks.Text = ""
  345. TPPlanks.TextSize = 14
  346.  
  347. TextLabel_9.Parent = TPPlanks
  348. TextLabel_9.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  349. TextLabel_9.BorderSizePixel = 0
  350. TextLabel_9.Position = UDim2.new(0, 8, 0, 8)
  351. TextLabel_9.Size = UDim2.new(1, -16, 1, -16)
  352. TextLabel_9.ZIndex = 6
  353. TextLabel_9.Font = Enum.Font.ArialBold
  354. TextLabel_9.Text = "TP Planks"
  355. TextLabel_9.TextColor3 = Color3.new(0, 0, 0)
  356. TextLabel_9.TextSize = 24
  357. TextLabel_9.TextWrapped = true
  358.  
  359. TPPlot.Name = "TPPlot"
  360. TPPlot.Parent = Main
  361. TPPlot.BackgroundColor3 = Color3.new(1, 1, 1)
  362. TPPlot.BorderSizePixel = 0
  363. TPPlot.Position = UDim2.new(-0.518546343, -75, -0.231333375, 160)
  364. TPPlot.Size = UDim2.new(0, 150, 0, 50)
  365. TPPlot.ZIndex = 6
  366. TPPlot.Font = Enum.Font.SourceSans
  367. TPPlot.Text = ""
  368. TPPlot.TextSize = 14
  369.  
  370. TextLabel_10.Parent = TPPlot
  371. TextLabel_10.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  372. TextLabel_10.BorderSizePixel = 0
  373. TextLabel_10.Position = UDim2.new(0, 8, 0, 8)
  374. TextLabel_10.Size = UDim2.new(1, -16, 1, -16)
  375. TextLabel_10.ZIndex = 6
  376. TextLabel_10.Font = Enum.Font.ArialBold
  377. TextLabel_10.Text = "Plot TP"
  378. TextLabel_10.TextColor3 = Color3.new(0, 0, 0)
  379. TextLabel_10.TextSize = 24
  380. TextLabel_10.TextWrapped = true
  381.  
  382. TPWood.Name = "TPWood"
  383. TPWood.Parent = Main
  384. TPWood.BackgroundColor3 = Color3.new(1, 1, 1)
  385. TPWood.BorderSizePixel = 0
  386. TPWood.Position = UDim2.new(-1.02564979, -75, -0.569361627, 160)
  387. TPWood.Size = UDim2.new(0, 150, 0, 50)
  388. TPWood.ZIndex = 6
  389. TPWood.Font = Enum.Font.SourceSans
  390. TPWood.Text = ""
  391. TPWood.TextSize = 14
  392.  
  393. TextLabel_11.Parent = TPWood
  394. TextLabel_11.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
  395. TextLabel_11.BorderSizePixel = 0
  396. TextLabel_11.Position = UDim2.new(0, 8, 0, 8)
  397. TextLabel_11.Size = UDim2.new(1, -16, 1, -16)
  398. TextLabel_11.ZIndex = 6
  399. TextLabel_11.Font = Enum.Font.ArialBold
  400. TextLabel_11.Text = "TP Wood"
  401. TextLabel_11.TextColor3 = Color3.new(0, 0, 0)
  402. TextLabel_11.TextSize = 24
  403. TextLabel_11.TextWrapped = true
  404. -- Scripts:
  405. function SCRIPT_LPVP84_FAKESCRIPT() -- Admin.LocalScript
  406. local script = Instance.new('LocalScript')
  407. script.Parent = Admin
  408. local SoundBump = game.StarterGui.ClientSounds.Bump
  409. local SoundErr = game.StarterGui.ClientSounds.Err
  410. local Close = script.Parent.Frame.Main.Close
  411. local Spawn = script.Parent.Frame.Main.Spawn
  412. local ItemName = script.Parent.Frame.Main.ItemName
  413. local ItemAmount = script.Parent.Frame.Main.ItemAmount
  414. local button = script.Parent.Open
  415. local Frame = script.Parent.Frame
  416.  
  417. local menudetect = game.StarterGui.MenuGUI.Open
  418.  
  419. Close.MouseButton1Click:Connect(function()
  420. ItemName.Text = ""
  421. SoundBump:Play()
  422. Frame.Visible = false
  423. end)
  424.  
  425. Spawn.MouseButton1Click:Connect(function()
  426. if ItemName.Text == "" or ItemAmount.Text == "" then
  427. SoundErr:Play()
  428. else
  429. SoundBump:Play()
  430. print(ItemName.Text)
  431. local Item = ItemName.Text
  432. local Quantity = ItemAmount.Text
  433.  
  434. local Land = nil
  435. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  436. if v.Owner.Value == game.Players.LocalPlayer then
  437. Land = v
  438. break
  439. end
  440. end
  441. if not Land then
  442. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  443. if v.Owner.Value == game.Players.LocalPlayer or v.Owner.Value == nil then
  444. Land = v
  445. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  446. break
  447. end
  448. end
  449. end
  450.  
  451. function Spawn(Item)
  452. local Info = {}
  453. Info.Name = Item.Name
  454. Info.Type = game.ReplicatedStorage.Purchasables.Structures.HardStructures.Sawmill2.Type
  455. Info.OtherInfo = game.ReplicatedStorage.Purchasables.WireObjects.Wire.OtherInfo
  456. local Points = {Land.OriginSquare.Position + Vector3.new(0,5,0), Land.OriginSquare.Position + Vector3.new(0,5,0)}
  457. game.ReplicatedStorage.PlaceStructure.ClientPlacedWire:FireServer(Info, Points)
  458. end
  459.  
  460. for i=1, Quantity do
  461. Spawn(game.ReplicatedStorage.Purchasables:FindFirstChild(Item, true))
  462. end
  463. Frame.Visible = false
  464. end
  465. ItemName.Text = ""
  466. end)
  467.  
  468.  
  469. --Open/Close
  470.  
  471.  
  472.  
  473. button.MouseButton1Click:Connect(function()
  474. SoundBump:Play()
  475. Frame.Visible = true
  476. ItemName.Text = ""
  477. end)
  478.  
  479.  
  480.  
  481. --Other
  482.  
  483. local main = script.Parent.Frame.Main
  484. local TPPlot = main.TPPlot
  485. local TPPlanks = main.TPPlanks
  486. local MaxLand = main.MaxLand
  487. local Rejoin = main.Rejoin
  488. local TPWood = main.TPWood
  489. local SellWood = main.SellWood
  490. local SellPlanks = main.SellPlanks
  491. local Blueprints = main.Blueprints
  492.  
  493. TPPlot.MouseButton1Click:Connect(function()
  494. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  495. if v.Owner.Value == game.Players.LocalPlayer then
  496. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.OriginSquare.CFrame + Vector3.new(0,10,0)
  497. end
  498. end
  499. Frame.Visible = false
  500. SoundBump:Play()
  501. end)
  502.  
  503.  
  504. TPPlanks.MouseButton1Click:Connect(function()
  505. for i,models in pairs(game.Workspace.PlayerModels:GetChildren()) do
  506. if string.match(models.Name:lower(), "plank") then
  507. if models.Owner.Value == game.Players.LocalPlayer then
  508. spawn(function()
  509. for i=1, 5 do
  510. models.WoodSection.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,10,0)
  511. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(models.WoodSection)
  512. wait()
  513. end
  514. end)
  515. end
  516. end
  517. end
  518. Frame.Visible = false
  519. SoundBump:Play()
  520. end)
  521.  
  522. MaxLand.MouseButton1Click:Connect(function()
  523. for i, v in pairs(game:GetService("Workspace").Properties:GetChildren()) do
  524. if v:FindFirstChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then
  525. base = v
  526. square = v.OriginSquare
  527. end
  528. end
  529. function makebase(pos)
  530. local Event = game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty
  531. Event:FireServer(base, pos)
  532. end
  533. spos = square.Position
  534. makebase(CFrame.new(spos.X + 40, spos.Y, spos.Z))
  535. makebase(CFrame.new(spos.X - 40, spos.Y, spos.Z))
  536. makebase(CFrame.new(spos.X, spos.Y, spos.Z + 40))
  537. makebase(CFrame.new(spos.X, spos.Y, spos.Z - 40))
  538. makebase(CFrame.new(spos.X + 40, spos.Y, spos.Z + 40))
  539. makebase(CFrame.new(spos.X + 40, spos.Y, spos.Z - 40))
  540. makebase(CFrame.new(spos.X - 40, spos.Y, spos.Z + 40))
  541. makebase(CFrame.new(spos.X - 40, spos.Y, spos.Z - 40))
  542. makebase(CFrame.new(spos.X + 80, spos.Y, spos.Z))
  543. makebase(CFrame.new(spos.X - 80, spos.Y, spos.Z))
  544. makebase(CFrame.new(spos.X, spos.Y, spos.Z + 80))
  545. makebase(CFrame.new(spos.X, spos.Y, spos.Z - 80))
  546. --Corners--
  547. makebase(CFrame.new(spos.X + 80, spos.Y, spos.Z + 80))
  548. makebase(CFrame.new(spos.X + 80, spos.Y, spos.Z - 80))
  549. makebase(CFrame.new(spos.X - 80, spos.Y, spos.Z + 80))
  550. makebase(CFrame.new(spos.X - 80, spos.Y, spos.Z - 80))
  551. --Corners--
  552. makebase(CFrame.new(spos.X + 40, spos.Y, spos.Z + 80))
  553. makebase(CFrame.new(spos.X - 40, spos.Y, spos.Z + 80))
  554. makebase(CFrame.new(spos.X + 80, spos.Y, spos.Z + 40))
  555. makebase(CFrame.new(spos.X + 80, spos.Y, spos.Z - 40))
  556. makebase(CFrame.new(spos.X - 80, spos.Y, spos.Z + 40))
  557. makebase(CFrame.new(spos.X - 80, spos.Y, spos.Z - 40))
  558. makebase(CFrame.new(spos.X + 40, spos.Y, spos.Z - 80))
  559. makebase(CFrame.new(spos.X - 40, spos.Y, spos.Z - 80))
  560. Frame.Visible = false
  561. SoundBump:Play()
  562. end)
  563.  
  564. Rejoin.MouseButton1Click:Connect(function()
  565. local placeId = script.Parent.PlaceId.Value
  566. game:GetService("TeleportService"):Teleport(placeId)
  567. end)
  568.  
  569. TPWood.MouseButton1Click:Connect(function()
  570. for _, Log in pairs(game.Workspace.LogModels:GetChildren()) do
  571. if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
  572. if Log.Owner.Value == game.Players.LocalPlayer then
  573. Log:MoveTo(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
  574. for i=1,20 do
  575. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log.WoodSection)
  576. game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(Log.WoodSection)
  577. end
  578. end
  579. end
  580. end
  581. Frame.Visible = false
  582. SoundBump:Play()
  583. end)
  584.  
  585. SellWood.MouseButton1Click:Connect(function()
  586. for _, Log in pairs(workspace.LogModels:GetChildren()) do
  587. if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
  588. if Log.Owner.Value == game.Players.LocalPlayer then
  589. for i,v in pairs(Log:GetChildren()) do
  590. if v.Name=="WoodSection" then
  591. spawn(function()
  592. for i=1,10 do
  593. wait()
  594. v.CFrame=CFrame.new(Vector3.new(315, -0.296, 85.791))*CFrame.Angles(math.rad(90),0,0)
  595. end
  596. end)
  597. end
  598. end
  599. spawn(function()
  600. for i=1,20 do
  601. wait()
  602. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log.WoodSection)
  603. game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(Log.WoodSection)
  604. end
  605. end)
  606. end
  607. end
  608. end
  609. Frame.Visible = false
  610. SoundBump:Play()
  611. end)
  612.  
  613. SellPlanks.MouseButton1Click:Connect(function()
  614. for _, Plank in pairs(game.Workspace.PlayerModels:GetChildren()) do
  615. if Plank.Name=="Plank" and Plank:findFirstChild("Owner") then
  616. if Plank.Owner.Value == game.Players.LocalPlayer then
  617. for i,v in pairs(Plank:GetChildren()) do
  618. if v.Name=="WoodSection" then
  619. spawn(function()
  620. for i=1,10 do
  621. wait()
  622. v.CFrame=CFrame.new(Vector3.new(315, -0.296, 85.791))*CFrame.Angles(math.rad(90),0,0)
  623.  
  624. end
  625. end)
  626. end
  627. end
  628. spawn(function()
  629. for i=1,20 do
  630. wait()
  631. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Plank.WoodSection)
  632. game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(Plank.WoodSection)
  633. end
  634. end)
  635. end
  636. end
  637. end
  638. SoundBump:Play()
  639. Frame.Visible = false
  640. end)
  641.  
  642. Blueprints.MouseButton1Click:Connect(function()
  643. for i,v in pairs(game.ReplicatedStorage.Purchasables.Structures.BlueprintStructures:GetChildren()) do
  644. local clone = v:Clone()
  645. clone.Parent = game.Players.LocalPlayer.PlayerBlueprints.Blueprints
  646. end
  647. Frame.Visible = false
  648. SoundBump:Play()
  649. end)
  650.  
  651. end
  652. coroutine.resume(coroutine.create(SCRIPT_LPVP84_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement