Advertisement
Alex7077

Untitled

Dec 5th, 2024
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. -- Instances:
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local Frame = Instance.new("Frame")
  4. local Credits = Instance.new("TextLabel")
  5. local Toggle = Instance.new("TextButton")
  6. local TextLabel = Instance.new("TextLabel")
  7. local Amount = Instance.new("TextBox")
  8.  
  9. -- Properties:
  10. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  11.  
  12. Frame.Parent = ScreenGui
  13. Frame.Active = true
  14. Frame.BackgroundColor3 = Color3.new(0.207843, 0.317647, 0.360784)
  15. Frame.BackgroundTransparency = 0.25
  16. Frame.BorderSizePixel = 3
  17. Frame.Position = UDim2.new(0.808, 0, 0.751, 0)
  18. Frame.Size = UDim2.new(0, 208, 0, 131)
  19.  
  20. Credits.Name = "Credits"
  21. Credits.Parent = Frame
  22. Credits.BackgroundColor3 = Color3.new(1, 1, 1)
  23. Credits.BackgroundTransparency = 1
  24. Credits.Position = UDim2.new(0.02, 0, 0.095, 0)
  25. Credits.Size = UDim2.new(0, 200, 0, 50)
  26. Credits.Font = Enum.Font.Highway
  27. Credits.Text = "By Jxl"
  28. Credits.TextColor3 = Color3.new(0, 0, 0)
  29. Credits.TextSize = 14
  30.  
  31. Toggle.Name = "Toggle"
  32. Toggle.Parent = Frame
  33. Toggle.BackgroundColor3 = Color3.new(1, 1, 1)
  34. Toggle.BackgroundTransparency = 0.54
  35. Toggle.Position = UDim2.new(0.048, 0, 0.476, 0)
  36. Toggle.Size = UDim2.new(0, 88, 0, 50)
  37. Toggle.Font = Enum.Font.SourceSans
  38. Toggle.Text = "Start Spam"
  39. Toggle.TextColor3 = Color3.new(0, 0, 0)
  40. Toggle.TextSize = 14
  41.  
  42. TextLabel.Parent = Frame
  43. TextLabel.BackgroundColor3 = Color3.new(0.188, 0.396, 0.533)
  44. TextLabel.Size = UDim2.new(0, 208, 0, 13)
  45. TextLabel.Font = Enum.Font.SourceSans
  46. TextLabel.Text = "FE Spam Blocks Tool"
  47. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  48. TextLabel.TextSize = 14
  49.  
  50. Amount.Name = "Amount"
  51. Amount.Parent = Frame
  52. Amount.BackgroundColor3 = Color3.new(1, 1, 1)
  53. Amount.BackgroundTransparency = 0.54
  54. Amount.Position = UDim2.new(0.558, 0, 0.58, 0)
  55. Amount.Size = UDim2.new(0, 88, 0, 21)
  56. Amount.Font = Enum.Font.SourceSans
  57. Amount.Text = "Amount"
  58. Amount.TextColor3 = Color3.new(0, 0, 0)
  59. Amount.TextSize = 14
  60.  
  61. -- Dragging functionality:
  62. for _, v in ipairs(Frame:GetDescendants()) do
  63. if v:IsA("Frame") or v:IsA("TextButton") or v:IsA("TextBox") then
  64. v.Draggable = true
  65. end
  66. end
  67.  
  68. -- Button click functionality:
  69. Toggle.MouseButton1Click:Connect(function()
  70. local count = tonumber(Amount.Text) -- Convert Amount.Text to a number
  71. if not count or count <= 0 then
  72. warn("Please enter a valid positive number.")
  73. return
  74. end
  75.  
  76. for i = 1, count do
  77. -- Create a new part (block)
  78. local block = Instance.new("Part")
  79. block.Size = Vector3.new(4, 4, 4) -- Set size of the block
  80. block.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0, i * 5, 0) -- Offset position
  81. block.Anchored = false -- Make it physics-enabled
  82. block.Parent = workspace -- Add block to the workspace
  83.  
  84. print("Spawned block:", i) -- Debugging
  85. wait(0.1) -- Prevents server overload
  86. end
  87. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement