Advertisement
Guest User

Untitled

a guest
May 20th, 2019
1,266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.28 KB | None | 0 0
  1. local EvanGui = Instance.new("ScreenGui")
  2. local OpenFrame = Instance.new("Frame")
  3. local open = Instance.new("TextButton")
  4. local Main = Instance.new("Frame")
  5. local BeautyA = Instance.new("Frame")
  6. local TextLabel = Instance.new("TextLabel")
  7. local BeautyB = Instance.new("Frame")
  8. local TextLabel_2 = Instance.new("TextLabel")
  9. local clonar = Instance.new("TextButton")
  10. local Close = Instance.new("TextButton")
  11. local TextBox = Instance.new("TextBox")
  12. --Properties:
  13. EvanGui.Name = "EvanGui"
  14. EvanGui.Parent = game.CoreGui
  15.  
  16. OpenFrame.Name = "OpenFrame"
  17. OpenFrame.Parent = EvanGui
  18. OpenFrame.Active = true
  19. OpenFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  20. OpenFrame.BorderSizePixel = 0
  21. OpenFrame.Position = UDim2.new(0.747196674, 0, 0, 0)
  22. OpenFrame.Size = UDim2.new(0, 93, 0, 33)
  23. OpenFrame.Draggable = true
  24.  
  25. open.Name = "open"
  26. open.Parent = OpenFrame
  27. open.BackgroundColor3 = Color3.new(0.333333, 0.333333, 0.333333)
  28. open.Position = UDim2.new(0.014910033, 0, 0.155798227, 0)
  29. open.Size = UDim2.new(0, 91, 0, 27)
  30. open.Font = Enum.Font.SourceSans
  31. open.Text = "Abrir"
  32. open.TextColor3 = Color3.new(1, 1, 1)
  33. open.TextSize = 16
  34. open.MouseButton1Down:connect(function()
  35. Main.Visible = true
  36. OpenFrame.Visible = false
  37. end)
  38.  
  39. Main.Name = "Main"
  40. Main.Parent = EvanGui
  41. Main.Active = true
  42. Main.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  43. Main.BackgroundTransparency = 0.40000000596046
  44. Main.Position = UDim2.new(0.291539252, 0, 0.11067196, 0)
  45. Main.Size = UDim2.new(0, 409, 0, 141)
  46. Main.Visible = false
  47. Main.Draggable = true
  48.  
  49. BeautyA.Name = "BeautyA"
  50. BeautyA.Parent = Main
  51. BeautyA.BackgroundColor3 = Color3.new(0.223529, 0.223529, 0.223529)
  52. BeautyA.BorderColor3 = Color3.new(1, 0.00784314, 0.917647)
  53. BeautyA.BorderSizePixel = 0
  54. BeautyA.Size = UDim2.new(0, 409, 0, 45)
  55.  
  56. TextLabel.Parent = BeautyA
  57. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  58. TextLabel.BackgroundTransparency = 1
  59. TextLabel.BorderSizePixel = 0
  60. TextLabel.Size = UDim2.new(0, 409, 0, 45)
  61. TextLabel.Font = Enum.Font.SourceSans
  62. TextLabel.Text = "Gui Feita Por Evan Player"
  63. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  64. TextLabel.TextSize = 30
  65.  
  66. BeautyB.Name = "BeautyB"
  67. BeautyB.Parent = Main
  68. BeautyB.BackgroundColor3 = Color3.new(0.223529, 0.223529, 0.223529)
  69. BeautyB.BorderColor3 = Color3.new(1, 0.00784314, 0.917647)
  70. BeautyB.BorderSizePixel = 0
  71. BeautyB.Position = UDim2.new(0, 0, 0.712780654, 0)
  72. BeautyB.Size = UDim2.new(0, 409, 0, 40)
  73.  
  74. TextLabel_2.Parent = BeautyB
  75. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  76. TextLabel_2.BackgroundTransparency = 1
  77. TextLabel_2.BorderSizePixel = 0
  78. TextLabel_2.Size = UDim2.new(0, 409, 0, 40)
  79. TextLabel_2.Font = Enum.Font.SourceSans
  80. TextLabel_2.Text = "Inscreva-se em meu canal no youtube.com/evanplayer"
  81. TextLabel_2.TextColor3 = Color3.new(0.85098, 0.85098, 0.85098)
  82. TextLabel_2.TextSize = 20
  83.  
  84. clonar.Name = "clonar"
  85. clonar.Parent = Main
  86. clonar.BackgroundColor3 = Color3.new(0.313726, 0.313726, 0.313726)
  87. clonar.BorderSizePixel = 0
  88. clonar.Position = UDim2.new(0.67788285, 0, 0.446495652, 0)
  89. clonar.Size = UDim2.new(0, 99, 0, 28)
  90. clonar.Font = Enum.Font.SourceSans
  91. clonar.Text = "Clonar Base"
  92. clonar.TextColor3 = Color3.new(0.960784, 0.960784, 0.960784)
  93. clonar.TextSize = 18
  94. clonar.MouseButton1Down:connect(function()
  95. local RunService = game:GetService("RunService")
  96. local TargetPlayer = TextBox.Text
  97. local SlowMode = false
  98. local WipeLocal = false
  99.  
  100. local CopyStructure = true
  101. local CopyWire = true
  102. local CopyItems = true
  103. local CopyFurniture = true
  104.  
  105. if WipeLocal then
  106. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do
  107. if v:FindFirstChild("Owner") then
  108. if v.Owner.Value == game.Players.LocalPlayer then
  109. game.ReplicatedStorage.Interaction.DestroyStructure:FireServer(v)
  110. end
  111. end
  112. end
  113. wait(0.5)
  114. end
  115.  
  116. for i,v in pairs(game.Players:GetChildren()) do
  117. if v ~= game.Players.LocalPlayer then
  118. if v.Name:find(TargetPlayer) then
  119. TargetPlayer = v
  120. break
  121. end
  122. end
  123. end
  124.  
  125. local LocalLand, TargetLand
  126.  
  127. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  128. if v:FindFirstChild("Owner") then
  129. if v.Owner.Value == TargetPlayer then
  130. TargetLand = v
  131. elseif v.Owner.Value == game.Players.LocalPlayer then
  132. LocalLand = v
  133. end
  134. end
  135. end
  136.  
  137. local CollectedTargetStructures, CollectedLocalStructures, CollectedLocalFurnitures, CollectedTargetFurnitures, CollectedLocalItems, CollectedTargetItems = {}, {}, {}, {}, {}, {}
  138. local CollectedTargetItemsCopy, CollectedTargetFurnituresCopy = {}, {}
  139. local TotalCollectedBlueprints = 0
  140.  
  141. if CopyStructure then
  142. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do
  143. if v:FindFirstChild("Owner") and v.Owner.Value == TargetPlayer then
  144. if v:FindFirstChild("BuildDependentWood") and (v.Type.Value == "Structure" or v.Type.Value == "Furniture") then
  145. local Data = {}
  146. Data.WoodClass = v:FindFirstChild("BlueprintWoodClass") and v.BlueprintWoodClass.Value
  147. Data.OffSet = (v:FindFirstChild("MainCFrame") and v.MainCFrame.Value or v.PrimaryPart.CFrame) - TargetLand.OriginSquare.Position
  148. Data.BlueprintType = v.ItemName.Value
  149. table.insert(CollectedTargetStructures,Data)
  150. end
  151. end
  152. end
  153.  
  154. for i, Data in pairs(CollectedTargetStructures) do
  155. game.ReplicatedStorage.PlaceStructure.ClientPlacedBlueprint:FireServer(Data.BlueprintType, LocalLand.OriginSquare.CFrame - Vector3.new(0,20,0), game.Players.LocalPlayer)
  156.  
  157. if SlowMode and (math.random(1,2) ~= 1) then
  158. RunService.RenderStepped:Wait()
  159. end
  160. end
  161. end
  162.  
  163. function blueprintHasBeenCollected(Model)
  164. if CollectedLocalStructures[Model.Name] then
  165. for i, BlueprintModel in pairs(CollectedLocalStructures[Model.Name]) do
  166. if BlueprintModel == Model then
  167. return true
  168. end
  169. end
  170. end
  171. return false
  172. end
  173.  
  174. repeat
  175. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do
  176. if v:FindFirstChild("Owner") and v.Owner.Value == game.Players.LocalPlayer and v:FindFirstChild("Type") and v.Type.Value == "Blueprint" and not blueprintHasBeenCollected(v) then
  177. if not CollectedLocalStructures[v.Name] then
  178. CollectedLocalStructures[v.Name] = {}
  179. end
  180. table.insert(CollectedLocalStructures[v.Name], v)
  181. TotalCollectedBlueprints = TotalCollectedBlueprints + 1
  182. end
  183. end
  184. wait()
  185. until TotalCollectedBlueprints == #CollectedTargetStructures
  186.  
  187. function SpawnStructure(Data, Blueprint)
  188. local Position = Data.OffSet + LocalLand.OriginSquare.Position
  189. game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(Blueprint.ItemName.Value, Position, game.Players.LocalPlayer, Data.WoodClass, Blueprint, not Data.WoodClass)
  190. end
  191.  
  192. for i, Data in pairs(CollectedTargetStructures) do
  193. local Blueprint = CollectedLocalStructures[Data.BlueprintType][1]
  194. table.remove(CollectedLocalStructures[Data.BlueprintType], 1)
  195.  
  196. SpawnStructure(Data, Blueprint)
  197.  
  198. if SlowMode and (math.random(1,2) ~= 1) then
  199. RunService.RenderStepped:Wait()
  200. end
  201. end
  202.  
  203. function CreateWire(WireType, Points)
  204. local Wire = game.ReplicatedStorage.Purchasables.WireObjects[WireType]
  205.  
  206. for i,v in pairs(Points) do
  207. Points[i] = v + LocalLand.OriginSquare.Position
  208. end
  209.  
  210. game.ReplicatedStorage.PlaceStructure.ClientPlacedWire:FireServer(Wire, Points)
  211. end
  212.  
  213. if CopyWire then
  214. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do
  215. if v:FindFirstChild("Owner") and v.Owner.Value == TargetPlayer and v:FindFirstChild("Type") and v.Type.Value == "Wire" and v:FindFirstChild("End1") then
  216. local Points = {}
  217. local PointCount = 1
  218.  
  219. table.insert(Points, (v.End1.Position - TargetLand.OriginSquare.Position))
  220.  
  221. for i,w in pairs(v:GetChildren()) do
  222. if w.Name:find("Point") then
  223. PointCount = PointCount + 1
  224. end
  225. end
  226.  
  227. for i=2, PointCount do
  228. local Point = v:FindFirstChild("Point"..tostring(i))
  229. table.insert(Points, (Point.Position - TargetLand.OriginSquare.Position))
  230. end
  231.  
  232. table.insert(Points, (v.End2.Position - TargetLand.OriginSquare.Position))
  233. CreateWire(v.ItemName.Value, Points)
  234.  
  235. if SlowMode and (math.random(1,2) ~= 1)then
  236. RunService.RenderStepped:Wait()
  237. end
  238. end
  239. end
  240. end
  241.  
  242. function isValidFurniture(Model)
  243. if Model:FindFirstChild("Type") and (Model.Type.Value == "Structure" or Model.Type.Value == "Furniture" or Model.Type.Value == "Vehicle Spot") then
  244. if Model:FindFirstChild("BuildDependentWood") or Model:FindFirstChild("PurchasedBoxItemName") then
  245. return false
  246. end
  247. return true
  248. end
  249. return false
  250. end
  251.  
  252. function Spawn(ItemName, Position)
  253. local Info = {}
  254. Info.Name = ItemName.Value
  255. Info.Type = ItemName.Name == "PurchasedBoxItemName" and ItemName or game.ReplicatedStorage.Purchasables.Structures.HardStructures.Sawmill2.Type
  256. Info.OtherInfo = game.ReplicatedStorage.Purchasables.WireObjects.Wire.OtherInfo
  257. local Points = {Position.p, Position.p}
  258. game.ReplicatedStorage.PlaceStructure.ClientPlacedWire:FireServer(Info, Points)
  259. end
  260.  
  261. if CopyFurniture then
  262. for i, Model in pairs(game.Workspace.PlayerModels:GetChildren()) do
  263. if Model:FindFirstChild("Owner") and Model.Owner.Value == TargetPlayer and isValidFurniture(Model) then
  264. local ItemName = Model:FindFirstChild("ItemName") or Model:FindFirstChild("PurchasedBoxItemName")
  265. local Position = (Model:FindFirstChild("MainCFrame") and Model.MainCFrame.Value or Model.PrimaryPart.CFrame) - TargetLand.OriginSquare.Position
  266.  
  267. if ItemName.Name == "PurchasedBoxItemName" then
  268. Spawn(ItemName, Position + LocalLand.OriginSquare.Position)
  269. else
  270. Spawn(ItemName, LocalLand.OriginSquare.CFrame - Vector3.new(0,20,0))
  271. end
  272.  
  273. local Data = {}
  274. Data.ItemName = ItemName.Value
  275. Data.OffSet = Position
  276.  
  277. table.insert(CollectedTargetFurnitures, Data)
  278.  
  279. if SlowMode and (math.random(1,2) ~= 1)then
  280. RunService.RenderStepped:Wait()
  281. end
  282. end
  283. end
  284. end
  285.  
  286. for i, v in pairs(CollectedTargetFurnitures) do
  287. table.insert(CollectedTargetFurnituresCopy,v)
  288. end
  289.  
  290. function isValidFurnitureModel(Model)
  291. for i, Data in pairs(CollectedTargetFurnitures) do
  292. if Data.ItemName == Model.ItemName.Value then
  293. table.remove(CollectedTargetFurnitures, i)
  294. return true
  295. end
  296. end
  297. return false
  298. end
  299.  
  300. repeat
  301. for i, Model in pairs(game.Workspace.PlayerModels:GetChildren()) do
  302. if Model.Name == "Wire" and Model:FindFirstChild("Owner") and Model.Owner.Value == game.Players.LocalPlayer and Model.ItemName.Value ~= "Wire" and isValidFurnitureModel(Model) then
  303. table.insert(CollectedLocalFurnitures, Model)
  304. end
  305. end
  306. wait()
  307. until #CollectedTargetFurnitures == 0
  308.  
  309. function GrabModelFromCollectedFurnitures(ItemName)
  310. for i, Model in pairs(CollectedLocalFurnitures) do
  311. if Model.ItemName.Value == ItemName then
  312. table.remove(CollectedLocalFurnitures,i)
  313. return Model
  314. end
  315. end
  316. end
  317.  
  318. for i, Data in pairs(CollectedTargetFurnituresCopy) do
  319. local Model = GrabModelFromCollectedFurnitures(Data.ItemName)
  320. local ItemName = Data.ItemName
  321. local Position = Data.OffSet + LocalLand.OriginSquare.Position
  322. game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(ItemName,Position,game.Players.LocalPlayer,false,Model,true)
  323.  
  324. if SlowMode and (math.random(1,2) ~= 1)then
  325. RunService.RenderStepped:Wait()
  326. end
  327. end
  328.  
  329. function isValidItem(Model)
  330. if Model:FindFirstChild("Type") and (Model.Type.Value == "Structure" or Model.Type.Value == "Loose Item" or Model.Type.Value == "Tool" or Model.Type.Value == "Wire" or Model.Type.Value == "Furniture" or Model.Type.Value == "Gift") then
  331. if (Model.Type.Value == "Structure" or Model.Type.Value == "Wire" or Model.Type.Value == "Furniture") and not Model:FindFirstChild("PurchasedBoxItemName") then
  332. return false
  333. end
  334.  
  335. return true
  336. elseif not Model:FindFirstChild("Type") then
  337. if Model:FindFirstChild("ItemName") then
  338. local ItemName = Model.ItemName.Value:lower()
  339.  
  340. if ItemName:find("bob") and (ItemName:find("wob") or ItemName:find("head"))then
  341. return true
  342. end
  343. end
  344. end
  345. return false
  346. end
  347. function itemIsOnLand(Position)
  348. if (math.abs(Position.X - TargetLand.OriginSquare.Position.X) > 101 or math.abs(Position.Z - TargetLand.OriginSquare.Position.Z) > 101) then
  349. return false
  350. end
  351. for i, Square in pairs(TargetLand:GetChildren()) do
  352. if Square.Name == "Square" then
  353. if (math.abs(Position.X - Square.Position.X) < 21 and math.abs(Position.Z - Square.Position.Z) < 21) then
  354. return true
  355. end
  356. end
  357. end
  358. return false
  359. end
  360.  
  361. if CopyItems then
  362. for i, Model in pairs(game.Workspace.PlayerModels:GetChildren()) do
  363. if Model:FindFirstChild("Owner") and Model.Owner.Value == TargetPlayer and isValidItem(Model) then
  364. local ItemName = Model:FindFirstChild("ItemName") or Model:FindFirstChild("PurchasedBoxItemName")
  365. local Position = (Model:FindFirstChild("MainCFrame") and Model.MainCFrame.Value or Model.PrimaryPart.CFrame) - TargetLand.OriginSquare.Position
  366.  
  367. if itemIsOnLand((Model:FindFirstChild("MainCFrame") and Model.MainCFrame.Value or Model.PrimaryPart.CFrame).p) then
  368. Spawn(ItemName, LocalLand.OriginSquare.CFrame - Vector3.new(0,20,0))
  369.  
  370. local Data = {}
  371. Data.ItemName = ItemName.Value
  372. Data.OffSet = Position
  373.  
  374. table.insert(CollectedTargetItems, Data)
  375.  
  376. if SlowMode and (math.random(1,2) ~= 1)then
  377. RunService.RenderStepped:Wait()
  378. end
  379. end
  380. end
  381. end
  382. end
  383.  
  384. for i, v in pairs(CollectedTargetItems) do
  385. table.insert(CollectedTargetItemsCopy,v)
  386. end
  387.  
  388. function isValidItemModel(Model)
  389. for i, Data in pairs(CollectedTargetItems) do
  390. if Data.ItemName == Model.ItemName.Value then
  391. table.remove(CollectedTargetItems, i)
  392. return true
  393. end
  394. end
  395. return false
  396. end
  397. function itemHasBeenCollected(Model)
  398. for i, Data in pairs(CollectedLocalItems) do
  399. if Data.ItemName == Model.ItemName.Value then
  400. return true
  401. end
  402. end
  403. return false
  404. end
  405.  
  406. repeat
  407. for i, Model in pairs(game.Workspace.PlayerModels:GetChildren()) do
  408. if Model.Name == "Wire" and Model:FindFirstChild("Owner") and Model.Owner.Value == game.Players.LocalPlayer and (Model.ItemName.Value ~= "Wire" or (Model:FindFirstChild("ItemName") and Model.ItemName.Value == "Wire" and Model:FindFirstChild("PurchasedBoxItemName"))) and isValidItemModel(Model) and not itemHasBeenCollected(Model) then
  409. table.insert(CollectedLocalItems, Model)
  410. end
  411. end
  412. wait()
  413. until #CollectedTargetItems == 0
  414.  
  415. function GrabModelFromCollectedItems(ItemName)
  416. for i, Model in pairs(CollectedLocalItems) do
  417. if Model.ItemName.Value == ItemName then
  418. table.remove(CollectedLocalItems,i)
  419. return Model
  420. end
  421. end
  422. end
  423.  
  424. for i, Data in pairs(CollectedTargetItemsCopy) do
  425. local Model = GrabModelFromCollectedItems(Data.ItemName)
  426. local ItemName = Data.ItemName
  427. local Position = Data.OffSet + LocalLand.OriginSquare.Position
  428.  
  429. if Model:FindFirstChild("PurchasedBoxItemName") then
  430. game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(false, Position, false, false, Model)
  431. Model.Parent = nil
  432. else
  433. game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(ItemName,Position,game.Players.LocalPlayer,false,Model,true)
  434. end
  435.  
  436. if SlowMode and (math.random(1,2) ~= 1)then
  437. RunService.RenderStepped:Wait()
  438. end
  439. end
  440.  
  441. print("Finished Copying!")
  442. end)
  443.  
  444. Close.Name = "Close"
  445. Close.Parent = Main
  446. Close.BackgroundColor3 = Color3.new(0.403922, 0.403922, 0.403922)
  447. Close.Position = UDim2.new(0.922285438, 0, 0, 0)
  448. Close.Size = UDim2.new(0, 31, 0, 23)
  449. Close.Font = Enum.Font.SourceSans
  450. Close.Text = "X"
  451. Close.TextColor3 = Color3.new(1, 0, 0)
  452. Close.TextSize = 30
  453. Close.MouseButton1Down:connect(function()
  454. OpenFrame.Visible = true
  455. Main.Visible = false
  456. end)
  457.  
  458. TextBox.Parent = Main
  459. TextBox.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  460. TextBox.BorderSizePixel = 0
  461. TextBox.Position = UDim2.new(0.117359415, 0, 0.450838149, 0)
  462. TextBox.Size = UDim2.new(0, 204, 0, 28)
  463. TextBox.Font = Enum.Font.SourceSans
  464. TextBox.Text = "Insira Aqui o Nome Do Player"
  465. TextBox.TextColor3 = Color3.new(1, 1, 1)
  466. TextBox.TextSize = 14
  467. -- Scripts:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement