Advertisement
Guest User

kenny gui lumber tycoon 2

a guest
Sep 21st, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.85 KB | None | 0 0
  1. local Item = "ItemName"
  2. local Quantity = 10
  3.  
  4. local Land = nil
  5. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  6.    if v.Owner.Value == game.Players.LocalPlayer then
  7.        Land = v
  8.        break
  9.    end
  10. end
  11. if not Land then
  12.    for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  13.        if v.Owner.Value == game.Players.LocalPlayer or v.Owner.Value == nil then
  14.            Land = v
  15.            game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  16.            break
  17.        end
  18.    end
  19. end
  20.  
  21. function Spawn(Item)
  22.    local Info = {}
  23.    Info.Name = Item.Name
  24.    Info.Type = game.ReplicatedStorage.Purchasables.Structures.HardStructures.Sawmill2.Type
  25.    Info.OtherInfo = game.ReplicatedStorage.Purchasables.WireObjects.Wire.OtherInfo
  26.    local Points = {Land.OriginSquare.Position + Vector3.new(0,5,0), Land.OriginSquare.Position + Vector3.new(0,5,0)}
  27.    game.ReplicatedStorage.PlaceStructure.ClientPlacedWire:FireServer(Info, Points)
  28. end
  29.  
  30. for i=1, Quantity do
  31.    Spawn(game.ReplicatedStorage.Purchasables:FindFirstChild(Item, true))
  32. end                                
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. machados:
  55. Axe1
  56. Axe2
  57. Axe3
  58. AxeAlphaTesters
  59. AxeAmber
  60. AxeBetaTesters
  61. AxeChicken
  62. AxeTwitter
  63. BasicHatchet
  64. Beesaxe
  65. CandyCaneAxe
  66. EndTimesAxe
  67. FireAxe
  68. GingerbreadAxe
  69. ManyAxe
  70. Rukiryaxe
  71. SilverAxe
  72.  
  73. -------------------------
  74. veículos:
  75.  
  76. Pickup1
  77. Sleigh
  78. SmallTrailer
  79. Trailer2
  80. UtilityTruck
  81. UtilityTruck2
  82.  
  83. ------------------------
  84. itens:
  85.  
  86. BlueBall
  87. Bobblehead
  88. Bobblehead2
  89. Bobblehead3
  90. Bobblehead4
  91. Bobblehead5
  92. CanOfCranberry
  93. CanOfWorms
  94. CandyCane
  95. CoalLump
  96. Cocoa
  97. Cone
  98. Duck
  99. Dynamite
  100. Eye1
  101. Gifts
  102. GreenBall
  103. LightBulb
  104. Plate
  105. PlumBall
  106. RedBall
  107. PropertySoldSign
  108. PumpkinClassic
  109. PumpkinCursed
  110. PumpkinDark
  111. PumpkinGreen
  112. Scoobis
  113. Skull
  114. Snowball
  115. Spork
  116. Toboggan
  117. Turkey
  118. Turkey2
  119. Turkey3
  120. WorkLight
  121. YellowBall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement