Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Credits = Instance.new("TextLabel")
- local Toggle = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local Amount = Instance.new("TextBox")
- -- Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Frame.Parent = ScreenGui
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.new(0.207843, 0.317647, 0.360784)
- Frame.BackgroundTransparency = 0.25
- Frame.BorderSizePixel = 3
- Frame.Position = UDim2.new(0.808, 0, 0.751, 0)
- Frame.Size = UDim2.new(0, 208, 0, 131)
- Credits.Name = "Credits"
- Credits.Parent = Frame
- Credits.BackgroundColor3 = Color3.new(1, 1, 1)
- Credits.BackgroundTransparency = 1
- Credits.Position = UDim2.new(0.02, 0, 0.095, 0)
- Credits.Size = UDim2.new(0, 200, 0, 50)
- Credits.Font = Enum.Font.Highway
- Credits.Text = "By Jxl"
- Credits.TextColor3 = Color3.new(0, 0, 0)
- Credits.TextSize = 14
- Toggle.Name = "Toggle"
- Toggle.Parent = Frame
- Toggle.BackgroundColor3 = Color3.new(1, 1, 1)
- Toggle.BackgroundTransparency = 0.54
- Toggle.Position = UDim2.new(0.048, 0, 0.476, 0)
- Toggle.Size = UDim2.new(0, 88, 0, 50)
- Toggle.Font = Enum.Font.SourceSans
- Toggle.Text = "Start Spam"
- Toggle.TextColor3 = Color3.new(0, 0, 0)
- Toggle.TextSize = 14
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(0.188, 0.396, 0.533)
- TextLabel.Size = UDim2.new(0, 208, 0, 13)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "FE Spam Blocks Tool"
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextSize = 14
- Amount.Name = "Amount"
- Amount.Parent = Frame
- Amount.BackgroundColor3 = Color3.new(1, 1, 1)
- Amount.BackgroundTransparency = 0.54
- Amount.Position = UDim2.new(0.558, 0, 0.58, 0)
- Amount.Size = UDim2.new(0, 88, 0, 21)
- Amount.Font = Enum.Font.SourceSans
- Amount.Text = "Amount"
- Amount.TextColor3 = Color3.new(0, 0, 0)
- Amount.TextSize = 14
- -- Dragging functionality:
- for _, v in ipairs(Frame:GetDescendants()) do
- if v:IsA("Frame") or v:IsA("TextButton") or v:IsA("TextBox") then
- v.Draggable = true
- end
- end
- -- Button click functionality:
- Toggle.MouseButton1Click:Connect(function()
- local count = tonumber(Amount.Text) -- Convert Amount.Text to a number
- if not count or count <= 0 then
- warn("Please enter a valid positive number.")
- return
- end
- for i = 1, count do
- -- Create a new part (block)
- local block = Instance.new("Part")
- block.Size = Vector3.new(4, 4, 4) -- Set size of the block
- block.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0, i * 5, 0) -- Offset position
- block.Anchored = false -- Make it physics-enabled
- block.Parent = workspace -- Add block to the workspace
- print("Spawned block:", i) -- Debugging
- wait(0.1) -- Prevents server overload
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement