BOROLEKY2

move tool lumber

Sep 7th, 2020
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.35 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Main = Instance.new("Frame")
  3. local NPS2 = Instance.new("TextButton")
  4. local PlrF2 = Instance.new("Frame")
  5. local NP11 = Instance.new("TextButton")
  6. local NP22 = Instance.new("TextButton")
  7. local NP33 = Instance.new("TextButton")
  8. local NP44 = Instance.new("TextButton")
  9. local NP55 = Instance.new("TextButton")
  10. local NP66 = Instance.new("TextButton")
  11. local NPS1 = Instance.new("TextButton")
  12. local PlrF1 = Instance.new("Frame")
  13. local NP1 = Instance.new("TextButton")
  14. local NP2 = Instance.new("TextButton")
  15. local NP3 = Instance.new("TextButton")
  16. local NP4 = Instance.new("TextButton")
  17. local NP6 = Instance.new("TextButton")
  18. local NP5 = Instance.new("TextButton")
  19. local Frame = Instance.new("Frame")
  20. local Close = Instance.new("TextButton")
  21. local Tranfer = Instance.new("TextButton")
  22.  
  23. ScreenGui.Parent = game.CoreGui
  24.  
  25. Main.Name = "Main"
  26. Main.Parent = ScreenGui
  27. Main.BackgroundColor3 = Color3.new(0.129412, 0.462745, 1)
  28. Main.Position = UDim2.new(0.285207093, 0, 0.179361224, 0)
  29. Main.Size = UDim2.new(0, 362, 0, 136)
  30. Main.Active = true
  31. Main.Draggable = true
  32.  
  33. NPS2.Name = "NPS2"
  34. NPS2.Parent = Main
  35. NPS2.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  36. NPS2.BorderSizePixel = 0
  37. NPS2.Position = UDim2.new(0.529663265, 0, 0.682898223, 0)
  38. NPS2.Size = UDim2.new(0, 153, 0, 25)
  39. NPS2.Font = Enum.Font.SciFi
  40. NPS2.Text = "No Player Selected"
  41. NPS2.TextColor3 = Color3.new(0, 0, 0)
  42. NPS2.TextScaled = true
  43. NPS2.TextSize = 14
  44. NPS2.TextWrapped = true
  45.  
  46. PlrF2.Name = "PlrF2"
  47. PlrF2.Parent = NPS2
  48. PlrF2.BackgroundColor3 = Color3.new(1, 1, 1)
  49. PlrF2.BackgroundTransparency = 1
  50. PlrF2.Position = UDim2.new(0, 0, 1, 0)
  51. PlrF2.Size = UDim2.new(0, 153, 0, 42)
  52. PlrF2.Visible = false
  53.  
  54. NP11.Name = "NP11"
  55. NP11.Parent = PlrF2
  56. NP11.BackgroundColor3 = Color3.new(0.0745098, 0.988235, 1)
  57. NP11.BorderSizePixel = 0
  58. NP11.Size = UDim2.new(0, 153, 0, 25)
  59. NP11.Font = Enum.Font.SourceSans
  60. NP11.Text = "No Player"
  61. NP11.TextColor3 = Color3.new(0, 0, 0)
  62. NP11.TextScaled = true
  63. NP11.TextSize = 14
  64. NP11.TextWrapped = true
  65.  
  66. NP22.Name = "NP22"
  67. NP22.Parent = PlrF2
  68. NP22.BackgroundColor3 = Color3.new(0.0745098, 0.988235, 1)
  69. NP22.BorderSizePixel = 0
  70. NP22.Position = UDim2.new(0, 0, 0.59523809, 0)
  71. NP22.Size = UDim2.new(0, 153, 0, 25)
  72. NP22.Font = Enum.Font.SourceSans
  73. NP22.Text = "No Player"
  74. NP22.TextColor3 = Color3.new(0, 0, 0)
  75. NP22.TextScaled = true
  76. NP22.TextSize = 14
  77. NP22.TextWrapped = true
  78.  
  79. NP33.Name = "NP33"
  80. NP33.Parent = PlrF2
  81. NP33.BackgroundColor3 = Color3.new(0.0745098, 0.988235, 1)
  82. NP33.BorderSizePixel = 0
  83. NP33.Position = UDim2.new(0, 0, 1.19047618, 0)
  84. NP33.Size = UDim2.new(0, 153, 0, 25)
  85. NP33.Font = Enum.Font.SourceSans
  86. NP33.Text = "No Player"
  87. NP33.TextColor3 = Color3.new(0, 0, 0)
  88. NP33.TextScaled = true
  89. NP33.TextSize = 14
  90. NP33.TextWrapped = true
  91.  
  92. NP44.Name = "NP44"
  93. NP44.Parent = PlrF2
  94. NP44.BackgroundColor3 = Color3.new(0.0745098, 0.988235, 1)
  95. NP44.BorderSizePixel = 0
  96. NP44.Position = UDim2.new(0, 0, 1.78571427, 0)
  97. NP44.Size = UDim2.new(0, 153, 0, 25)
  98. NP44.Font = Enum.Font.SourceSans
  99. NP44.Text = "No Player"
  100. NP44.TextColor3 = Color3.new(0, 0, 0)
  101. NP44.TextScaled = true
  102. NP44.TextSize = 14
  103. NP44.TextWrapped = true
  104.  
  105. NP55.Name = "NP55"
  106. NP55.Parent = PlrF2
  107. NP55.BackgroundColor3 = Color3.new(0.0745098, 0.988235, 1)
  108. NP55.BorderSizePixel = 0
  109. NP55.Position = UDim2.new(0, 0, 2.38095236, 0)
  110. NP55.Size = UDim2.new(0, 153, 0, 25)
  111. NP55.Font = Enum.Font.SourceSans
  112. NP55.Text = "No Player"
  113. NP55.TextColor3 = Color3.new(0, 0, 0)
  114. NP55.TextScaled = true
  115. NP55.TextSize = 14
  116. NP55.TextWrapped = true
  117.  
  118. NP66.Name = "NP66"
  119. NP66.Parent = PlrF2
  120. NP66.BackgroundColor3 = Color3.new(0.0745098, 0.988235, 1)
  121. NP66.BorderSizePixel = 0
  122. NP66.Position = UDim2.new(0, 0, 2.97619057, 0)
  123. NP66.Size = UDim2.new(0, 153, 0, 25)
  124. NP66.Font = Enum.Font.SourceSans
  125. NP66.Text = "No Player"
  126. NP66.TextColor3 = Color3.new(0, 0, 0)
  127. NP66.TextScaled = true
  128. NP66.TextSize = 14
  129. NP66.TextWrapped = true
  130.  
  131. NPS1.Name = "NPS1"
  132. NPS1.Parent = Main
  133. NPS1.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  134. NPS1.BorderSizePixel = 0
  135. NPS1.Position = UDim2.new(0.0469613262, 0, 0.682898223, 0)
  136. NPS1.Size = UDim2.new(0, 153, 0, 25)
  137. NPS1.Font = Enum.Font.SciFi
  138. NPS1.Text = "No Player Selected"
  139. NPS1.TextColor3 = Color3.new(0, 0, 0)
  140. NPS1.TextScaled = true
  141. NPS1.TextSize = 14
  142. NPS1.TextWrapped = true
  143.  
  144. PlrF1.Name = "PlrF1"
  145. PlrF1.Parent = NPS1
  146. PlrF1.BackgroundColor3 = Color3.new(1, 1, 1)
  147. PlrF1.BackgroundTransparency = 1
  148. PlrF1.Position = UDim2.new(0, 0, 1, 0)
  149. PlrF1.Size = UDim2.new(0, 153, 0, 42)
  150. PlrF1.Visible = false
  151.  
  152. NP1.Name = "NP1"
  153. NP1.Parent = PlrF1
  154. NP1.BackgroundColor3 = Color3.new(0.0745098, 0.988235, 1)
  155. NP1.BorderSizePixel = 0
  156. NP1.Size = UDim2.new(0, 153, 0, 25)
  157. NP1.Font = Enum.Font.SourceSans
  158. NP1.Text = "No Player"
  159. NP1.TextColor3 = Color3.new(0, 0, 0)
  160. NP1.TextScaled = true
  161. NP1.TextSize = 14
  162. NP1.TextWrapped = true
  163.  
  164. NP2.Name = "NP2"
  165. NP2.Parent = PlrF1
  166. NP2.BackgroundColor3 = Color3.new(0.0745098, 0.988235, 1)
  167. NP2.BorderSizePixel = 0
  168. NP2.Position = UDim2.new(0, 0, 0.59523809, 0)
  169. NP2.Size = UDim2.new(0, 153, 0, 25)
  170. NP2.Font = Enum.Font.SourceSans
  171. NP2.Text = "No Player"
  172. NP2.TextColor3 = Color3.new(0, 0, 0)
  173. NP2.TextScaled = true
  174. NP2.TextSize = 14
  175. NP2.TextWrapped = true
  176.  
  177. NP3.Name = "NP3"
  178. NP3.Parent = PlrF1
  179. NP3.BackgroundColor3 = Color3.new(0.0745098, 0.988235, 1)
  180. NP3.BorderSizePixel = 0
  181. NP3.Position = UDim2.new(0, 0, 1.19047618, 0)
  182. NP3.Size = UDim2.new(0, 153, 0, 25)
  183. NP3.Font = Enum.Font.SourceSans
  184. NP3.Text = "No Player"
  185. NP3.TextColor3 = Color3.new(0, 0, 0)
  186. NP3.TextScaled = true
  187. NP3.TextSize = 14
  188. NP3.TextWrapped = true
  189.  
  190. NP4.Name = "NP4"
  191. NP4.Parent = PlrF1
  192. NP4.BackgroundColor3 = Color3.new(0.0745098, 0.988235, 1)
  193. NP4.BorderSizePixel = 0
  194. NP4.Position = UDim2.new(0, 0, 1.78571427, 0)
  195. NP4.Size = UDim2.new(0, 153, 0, 25)
  196. NP4.Font = Enum.Font.SourceSans
  197. NP4.Text = "No Player"
  198. NP4.TextColor3 = Color3.new(0, 0, 0)
  199. NP4.TextScaled = true
  200. NP4.TextSize = 14
  201. NP4.TextWrapped = true
  202.  
  203. NP6.Name = "NP6"
  204. NP6.Parent = PlrF1
  205. NP6.BackgroundColor3 = Color3.new(0.0745098, 0.988235, 1)
  206. NP6.BorderSizePixel = 0
  207. NP6.Position = UDim2.new(0, 0, 2.97619057, 0)
  208. NP6.Size = UDim2.new(0, 153, 0, 25)
  209. NP6.Font = Enum.Font.SourceSans
  210. NP6.Text = "No Player"
  211. NP6.TextColor3 = Color3.new(0, 0, 0)
  212. NP6.TextScaled = true
  213. NP6.TextSize = 14
  214. NP6.TextWrapped = true
  215.  
  216. NP5.Name = "NP5"
  217. NP5.Parent = PlrF1
  218. NP5.BackgroundColor3 = Color3.new(0.0745098, 0.988235, 1)
  219. NP5.BorderSizePixel = 0
  220. NP5.Position = UDim2.new(0, 0, 2.38095236, 0)
  221. NP5.Size = UDim2.new(0, 153, 0, 25)
  222. NP5.Font = Enum.Font.SourceSans
  223. NP5.Text = "No Player"
  224. NP5.TextColor3 = Color3.new(0, 0, 0)
  225. NP5.TextScaled = true
  226. NP5.TextSize = 14
  227. NP5.TextWrapped = true
  228.  
  229. Frame.Parent = Main
  230. Frame.BackgroundColor3 = Color3.new(0.101961, 0.113725, 1)
  231. Frame.Size = UDim2.new(0, 362, 0, 23)
  232.  
  233. Close.Name = "Close"
  234. Close.Parent = Frame
  235. Close.BackgroundColor3 = Color3.new(1, 0, 0)
  236. Close.Position = UDim2.new(0.889502764, 0, 0, 0)
  237. Close.Size = UDim2.new(0, 40, 0, 23)
  238. Close.Font = Enum.Font.SourceSans
  239. Close.Text = "X"
  240. Close.TextColor3 = Color3.new(0, 0, 0)
  241. Close.TextSize = 14
  242.  
  243. Tranfer.Name = "Tranfer"
  244. Tranfer.Parent = Main
  245. Tranfer.BackgroundColor3 = Color3.new(0.388235, 1, 0.203922)
  246. Tranfer.Position = UDim2.new(0.223756909, 0, 0.317199051, 0)
  247. Tranfer.Size = UDim2.new(0, 200, 0, 33)
  248. Tranfer.Font = Enum.Font.SciFi
  249. Tranfer.Text = "Tranfer Items"
  250. Tranfer.TextColor3 = Color3.new(0, 0, 0)
  251. Tranfer.TextScaled = true
  252. Tranfer.TextSize = 14
  253. Tranfer.TextWrapped = true
  254.  
  255. function Sound11()
  256. local s = Instance.new("Sound")
  257.  
  258. s.Name = "Sound"
  259. s.SoundId = "rbxassetid://408524543"
  260. s.Volume = 2
  261. s.archivable = false
  262. s.Parent = game.Workspace
  263. s:play()
  264. end
  265. function Sound22()
  266. local Song1 = Instance.new("Sound")
  267.  
  268. Song1.Name = "Song1"
  269. Song1.SoundId = "rbxassetid://452267918"
  270. Song1.Volume = 2
  271. Song1.archivable = false
  272. Song1.Parent = game.Workspace
  273. Song1:play()
  274. end
  275.  
  276. local Pos = { P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22, P23, P24, P25, P26 }
  277.  
  278. local buttons = { NP1, NP2, NP3, NP4, NP5, NP6 }
  279.  
  280. for i,v in pairs(game.Players:GetChildren()) do
  281. buttons[i].Text = v.Name
  282. end
  283.  
  284. game.Players.PlayerRemoving:connect(function()
  285. for i,v in pairs(game.Players:GetChildren()) do
  286. if v == nil then
  287. buttons[i].Text = "No Player"
  288. else
  289. buttons[i].Text = v.Name
  290. end
  291. end
  292. end)
  293.  
  294. game.Players.PlayerAdded:connect(function()
  295. for i,v in pairs(game.Players:GetChildren()) do
  296. if v == nil then
  297. buttons[i].Text = "No Player"
  298. else
  299. buttons[i].Text = v.Name
  300. end
  301. end
  302. end)
  303.  
  304. local buttons1 = { NP11, NP22, NP33, NP44, NP55, NP66 }
  305.  
  306. for i,v in pairs(game.Players:GetChildren()) do
  307. buttons1[i].Text = v.Name
  308. end
  309.  
  310. game.Players.PlayerRemoving:connect(function()
  311. for i,v in pairs(game.Players:GetChildren()) do
  312. if v == nil then
  313. buttons1[i].Text = "No Player"
  314. else
  315. buttons1[i].Text = v.Name
  316. end
  317. end
  318. end)
  319.  
  320. game.Players.PlayerAdded:connect(function()
  321. for i,v in pairs(game.Players:GetChildren()) do
  322. if v == nil then
  323. buttons1[i].Text = "No Player"
  324. else
  325. buttons1[i].Text = v.Name
  326. end
  327. end
  328. end)
  329.  
  330. Close.MouseButton1Down:connect(function()
  331. Sound22()
  332. Main.Visible = false
  333. end)
  334.  
  335. NPS1.MouseButton1Down:connect(function()
  336. Sound11()
  337. PlrF1.Visible = true
  338. end)
  339.  
  340. NPS2.MouseButton1Down:connect(function()
  341. Sound11()
  342. PlrF2.Visible = true
  343. end)
  344.  
  345. NP1.MouseButton1Down:connect(function()
  346. Sound11()
  347. PlrF1.Visible = false
  348. NPS1.Text = NP1.Text
  349. end)
  350.  
  351. NP2.MouseButton1Down:connect(function()
  352. Sound11()
  353. PlrF1.Visible = false
  354. NPS1.Text = NP2.Text
  355. end)
  356.  
  357. NP3.MouseButton1Down:connect(function()
  358. Sound11()
  359. PlrF1.Visible = false
  360. NPS1.Text = NP3.Text
  361. end)
  362.  
  363. NP4.MouseButton1Down:connect(function()
  364. Sound11()
  365. PlrF1.Visible = false
  366. NPS1.Text = NP4.Text
  367. end)
  368.  
  369. NP5.MouseButton1Down:connect(function()
  370. Sound11()
  371. PlrF1.Visible = false
  372. NPS1.Text = NP5.Text
  373. end)
  374.  
  375. NP6.MouseButton1Down:connect(function()
  376. Sound11()
  377. PlrF1.Visible = false
  378. NPS1.Text = NP6.Text
  379. end)
  380.  
  381. NP11.MouseButton1Down:connect(function()
  382. Sound11()
  383. PlrF2.Visible = false
  384. NPS2.Text = NP11.Text
  385. end)
  386.  
  387. NP22.MouseButton1Down:connect(function()
  388. Sound11()
  389. PlrF2.Visible = false
  390. NPS2.Text = NP22.Text
  391. end)
  392.  
  393. NP33.MouseButton1Down:connect(function()
  394. Sound11()
  395. PlrF2.Visible = false
  396. NPS2.Text = NP33.Text
  397. end)
  398.  
  399. NP44.MouseButton1Down:connect(function()
  400. Sound11()
  401. PlrF2.Visible = false
  402. NPS2.Text = NP44.Text
  403. end)
  404.  
  405. NP55.MouseButton1Down:connect(function()
  406. Sound11()
  407. PlrF2.Visible = false
  408. NPS2.Text = NP55.Text
  409. end)
  410.  
  411. NP66.MouseButton1Down:connect(function()
  412. Sound11()
  413. PlrF2.Visible = false
  414. NPS2.Text = NP66.Text
  415. end)
  416.  
  417. Tranfer.MouseButton1Down:connect(function()
  418. Sound22()
  419. local PlrA = NPS1.Text
  420. local PlrB = NPS2.Text
  421.  
  422. local function Bet(Val1, Val2)
  423. local Resp = (Vector3.new(Val1.X) - Vector3.new(Val2.X)).magnitude + (Vector3.new(Val1.Y) - Vector3.new(Val2.Y)).magnitude + (Vector3.new(Val1.Z) - Vector3.new(Val2.Z)).magnitude
  424. return Resp / 750
  425. end
  426.  
  427. local function Bet2(Val1, Val2)
  428. return (Vector3.new(Val1) - Vector3.new(Val2)).magnitude
  429. end
  430.  
  431. local function Tlprt(Val1, Val2, Val3, Val4, Val5, Val6)
  432. local Ang = nil
  433. local Pos = Vector3.new(Val1, Val2, Val3)
  434. local Cff
  435.  
  436. if Val4 ~= nil and Val5 ~= nil and Val6 ~= nil then
  437. Ang = Vector3.new(Val4, Val5, Val6)
  438. end
  439.  
  440. if Ang == nil then
  441. Cff = CFrame.new(Pos.X, Pos.Y, Pos.Z)
  442. else
  443. Cff = CFrame.new(Pos.X, Pos.Y, Pos.Z) * CFrame.Angles(Ang.X, Ang.Y, Ang.Z)
  444. end
  445.  
  446. local HRP = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  447. if not HRP:FindFirstChild("Pos") then
  448. local Pos = Instance.new("BodyForce", HRP)
  449. Pos.Name = "Pos"
  450. end
  451.  
  452. HRP.Pos.Force = Vector3.new(0,2393,0)
  453. local Time = Bet(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position, Cff.p)
  454. local Speed = TweenInfo.new(Time, Enum.EasingStyle.Linear)
  455. local CF = {CFrame = Cff}
  456. game:GetService("TweenService"):Create(HRP, Speed, CF):Play()
  457. wait(Time + 0.3)
  458. HRP.Pos.Force = Vector3.new(0,0,0)
  459. end
  460.  
  461. local Base
  462. for i, v in pairs(game.Workspace.Properties:GetChildren()) do
  463. if v.Owner.Value == game.Players[PlrA] then
  464. Base = v.OriginSquare.Position + Vector3.new(0,5,0)
  465. end
  466. end
  467.  
  468. local BaseB
  469. for i, v in pairs(game.Workspace.Properties:GetChildren()) do
  470. if v.Owner.Value == game.Players[PlrB] then
  471. BaseB = v.OriginSquare.CFrame + Vector3.new(0,5,0)
  472. end
  473. end
  474.  
  475. local function MyItem()
  476. local Items = {}
  477. for i,v in pairs(game:GetService("Workspace").PlayerModels:GetChildren()) do
  478. if v:FindFirstChild("Owner") and v.Owner.Value == game.Players[PlrA] then
  479. Items[#Items + 1] = v
  480. end
  481. end
  482. return Items
  483. end
  484.  
  485. PlrPs = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  486.  
  487. local Item
  488. for c, d in pairs(MyItem()) do
  489.  
  490. if d.Main ~= nil then
  491. Item = d.Main
  492. elseif d.WoodSection ~= nil then
  493. Item = d.WoodSection
  494. end
  495.  
  496. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Item.Parent)
  497. game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(Item)
  498.  
  499.  
  500. if (math.random(1,15) == 1) then wait() end
  501. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Item.Parent)
  502. game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(Item)
  503. Item.CFrame = BaseB + Vector3.new(math.random(-17,17), 0, math.random(-17,17))
  504. end
  505. end)
Add Comment
Please, Sign In to add comment