Advertisement
DaPeckNeck

Block Spawner GUI

Apr 9th, 2020
923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.87 KB | None | 0 0
  1. --Made my PekkuSan
  2. --Discord: pekkusan#7777
  3.  
  4. --Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local TextBox = Instance.new("TextBox")
  10. local TextButton = Instance.new("TextButton")
  11. local TextLabel_2 = Instance.new("TextLabel")
  12.  
  13. --Properties:
  14.  
  15. ScreenGui.Parent = game.Players.Moussah123:WaitForChild("PlayerGui")
  16. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  17.  
  18. Frame.Parent = ScreenGui
  19. Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  20. Frame.BackgroundTransparency = 0.750
  21. Frame.BorderColor3 = Color3.fromRGB(255, 255, 255)
  22. Frame.BorderSizePixel = 10
  23. Frame.Position = UDim2.new(0.513238132, 0, 0.393939406, 0)
  24. Frame.Size = UDim2.new(0, 455, 0, 236)
  25.  
  26. TextLabel.Parent = Frame
  27. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  28. TextLabel.BackgroundTransparency = 1.000
  29. TextLabel.Position = UDim2.new(0, 0, 0.0209575444, 0)
  30. TextLabel.Size = UDim2.new(0, 455, 0, 66)
  31. TextLabel.Font = Enum.Font.SourceSans
  32. TextLabel.Text = "Block Spawner"
  33. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  34. TextLabel.TextScaled = true
  35. TextLabel.TextSize = 14.000
  36. TextLabel.TextWrapped = true
  37.  
  38. TextBox.Parent = Frame
  39. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  40. TextBox.BackgroundTransparency = 0.750
  41. TextBox.Position = UDim2.new(0.142857149, 0, 0.337561637, 0)
  42. TextBox.Size = UDim2.new(0, 325, 0, 50)
  43. TextBox.Font = Enum.Font.SourceSans
  44. TextBox.Text = "5"
  45. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  46. TextBox.TextSize = 40.000
  47. TextBox.TextWrapped = true
  48.  
  49. TextButton.Parent = Frame
  50. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  51. TextButton.BackgroundTransparency = 0.750
  52. TextButton.Position = UDim2.new(0.142857149, 0, 0.590215921, 0)
  53. TextButton.Size = UDim2.new(0, 325, 0, 50)
  54. TextButton.Font = Enum.Font.SourceSans
  55. TextButton.Text = "Spawn"
  56. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  57. TextButton.TextSize = 40.000
  58. TextButton.TextWrapped = true
  59.  
  60. TextLabel_2.Parent = Frame
  61. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  62. TextLabel_2.BackgroundTransparency = 1.000
  63. TextLabel_2.Position = UDim2.new(0, 0, 0.86631006, 0)
  64. TextLabel_2.Size = UDim2.new(0, 455, 0, 31)
  65. TextLabel_2.Font = Enum.Font.SourceSans
  66. TextLabel_2.Text = "Made by PekkuSan"
  67. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  68. TextLabel_2.TextSize = 14.000
  69. TextLabel_2.TextWrapped = true
  70.  
  71. -- Scripts:
  72.  
  73. local function GPQX_fake_script() -- TextButton.Script
  74.     local script = Instance.new('Script', TextButton)
  75.  
  76.     script.Parent.MouseButton1Click:Connect(function()
  77.         local shit = script.Parent.Parent.TextBox.Text
  78.         local shit2 = game.ServerStorage.Value.Value
  79.         shit2 = tonumber(shit)
  80.        
  81.         for i=1,shit2 do
  82.             local part = Instance.new("Part", game.Workspace)
  83.             part.Position = Vector3.new(0, 129, 0)
  84.         end
  85.     end)
  86. end
  87. coroutine.wrap(GPQX_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement