Advertisement
zombieslayerwtf

Lumber Tycoon 2 op scripts {LEAKED}

Jun 7th, 2019
4,796
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. --spawn item:
  2. local Item = "PropertySoldSign"
  3. local Quantity = 1
  4.  
  5. local Land = nil
  6. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  7. if v.Owner.Value == game.Players.LocalPlayer then
  8. Land = v
  9. break
  10. end
  11. end
  12. if not Land then
  13. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  14. if v.Owner.Value == game.Players.LocalPlayer or v.Owner.Value == nil then
  15. Land = v
  16. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  17. break
  18. end
  19. end
  20. end
  21.  
  22. function Spawn(Item)
  23. local rpos = math.random(-10,10)
  24. local Info = {}
  25. Info.Name = Item.Name
  26. Info.Type = game.ReplicatedStorage.Purchasables.Structures.HardStructures.Sawmill2.Type
  27. Info.OtherInfo = game.ReplicatedStorage.Purchasables.WireObjects.Wire.OtherInfo
  28. local Points = {Land.OriginSquare.Position + Vector3.new(rpos,5,rpos), Land.OriginSquare.Position + Vector3.new(rpos,5,rpos)}
  29. game.ReplicatedStorage.PlaceStructure.ClientPlacedWire:FireServer(Info, Points)
  30. end
  31.  
  32. for i=1, Quantity do
  33. Spawn(game.ReplicatedStorage.Purchasables:FindFirstChild(Item, true))
  34. end
  35.  
  36. --clone item -tool
  37. local Character = game.Players.LocalPlayer.Character
  38. local Mouse = game.Players.LocalPlayer:GetMouse()
  39. local Land = nil
  40.  
  41. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  42. if v.Owner.Value == game.Players.LocalPlayer or v.Owner.Value == nil then
  43. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  44. break
  45. end
  46. end
  47.  
  48. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  49. if v.Owner.Value == game.Players.LocalPlayer then
  50. Land = v
  51. break
  52. end
  53. end
  54.  
  55. function Clone(Item)
  56. local Info = {}
  57. Info.Name = "Wire"
  58. Info.Type = Item
  59. Info.OtherInfo = game.ReplicatedStorage.Purchasables.WireObjects.Wire.OtherInfo
  60.  
  61. local Points = {Land.OriginSquare.Position - Vector3.new(0,100,0), Land.OriginSquare.Position - Vector3.new(0,100,0)}
  62. game.ReplicatedStorage.PlaceStructure.ClientPlacedWire:FireServer(Info, Points)
  63. end
  64.  
  65. local Tool = Instance.new("Tool")
  66. Tool.Name = "Clone"
  67. Tool.RequiresHandle = false
  68. Tool.Parent = game.Players.LocalPlayer.Backpack
  69.  
  70. Tool.Activated:Connect(function()
  71. if Mouse.Target and Land then
  72. local Target = Mouse.Target
  73.  
  74. if Target.Parent:IsA("Model") and Target.Parent:FindFirstChild("Main") then
  75. Target = Target.Parent
  76. elseif Target.Parent.Parent:IsA("Model") and Target.Parent.Parent:FindFirstChild("Main") then
  77. Target = Target.Parent.Parent
  78. elseif Target.Parent:IsA("Model") and Target.Parent:FindFirstChild("CutEvent") then
  79. Target = Target.Parent
  80. end
  81.  
  82. Clone(Target)
  83. else
  84. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  85. if v.Owner.Value == game.Players.LocalPlayer or v.Owner.Value == nil then
  86. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  87. break
  88. end
  89. end
  90.  
  91. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  92. if v.Owner.Value == game.Players.LocalPlayer then
  93. Land = v
  94. break
  95. end
  96. end
  97. end
  98. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement