Advertisement
Guest User

Untitled

a guest
Jun 6th, 2019
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Land = nil
  2. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  3.   if v.Owner.Value == game.Players.LocalPlayer then
  4.       Land = v
  5.       break
  6.   end
  7. end
  8. if not Land then
  9.   for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  10.       if v.Owner.Value == game.Players.LocalPlayer or v.Owner.Value == nil then
  11.           Land = v
  12.           game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  13.           break
  14.       end
  15.   end
  16. end
  17.  
  18. function Clone(Item)
  19. local Info = {}
  20. Info.Name = "Wire"
  21. Info.Type = Item
  22. Info.OtherInfo = game.ReplicatedStorage.Purchasables.WireObjects.Wire.OtherInfo
  23.  
  24. local Points = {Land.OriginSquare.Position - Vector3.new(0,100,0), Land.OriginSquare.Position - Vector3.new(0,100,0)}
  25. game.ReplicatedStorage.PlaceStructure.ClientPlacedWire:FireServer(Info, Points)
  26. end
  27.  
  28. for _, Tool in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  29. Clone(Tool)
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement