RuineKiller

lol fuck you evan

Jun 7th, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local TextButton = Instance.new("TextButton")
  4. local TextLabel = Instance.new("TextLabel")
  5. local TextLabel_2 = Instance.new("TextLabel")
  6. local TextLabel_3 = Instance.new("TextLabel")
  7. --Properties:
  8. ScreenGui.Parent = game.CoreGui
  9.  
  10. Frame.Parent = ScreenGui
  11. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  12. Frame.BackgroundTransparency = 1
  13. Frame.Size = UDim2.new(3, 977, 3, 525)
  14.  
  15. TextButton.Parent = Frame
  16. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  17. TextButton.BackgroundTransparency = 1
  18. TextButton.Size = UDim2.new(3, 977, 3, 525)
  19. TextButton.Font = Enum.Font.SourceSans
  20. TextButton.Text = ""
  21. TextButton.TextColor3 = Color3.new(0, 0, 0)
  22. TextButton.TextSize = 14
  23. TextButton.MouseButton1Down:connect(function()
  24. local Item = ""
  25. local Quantity = math.random
  26.  
  27. local Land = nil
  28. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  29. if v.Owner.Value == game.Players.LocalPlayer then
  30. Land = v
  31. break
  32. end
  33. end
  34. if not Land then
  35. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  36. if v.Owner.Value == game.Players.LocalPlayer or v.Owner.Value == nil then
  37. Land = v
  38. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  39. break
  40. end
  41. end
  42. end
  43.  
  44. function Spawn(Item)
  45. local Info = {}
  46. Info.Name = Item.Name
  47. Info.Type = game.ReplicatedStorage.Purchasables.Structures.HardStructures.Sawmill2.Type
  48. Info.OtherInfo = game.ReplicatedStorage.Purchasables.WireObjects.Wire.OtherInfo
  49. local Points = {Land.OriginSquare.Position + Vector3.new(0,5,0), Land.OriginSquare.Position + Vector3.new(0,5,0)}
  50. game.ReplicatedStorage.PlaceStructure.ClientPlacedWire:FireServer(Info, Points)
  51. end
  52.  
  53. for i=1, Quantity do
  54. Spawn(game.ReplicatedStorage.Purchasables:FindFirstChild(Item, true))
  55. end
  56. end
  57. end
  58. end)
Advertisement
Add Comment
Please, Sign In to add comment