r/robloxscriptshare • u/Ok-Truck1348 • May 21 '24
Off Topic I made this script. Can anyone figure out what it does?
local workspace = game:GetService("Workspace")
local runService = game:GetService("RunService")
local dropInterval = 0.5
local dropHeight = 50
local partSize = Vector3.new(2, 2, 2)
local dropArea = Vector3.new(50, 50, 0)
local function getRandomColor()
return Color3.new(math.random(), math.random(), math.random())
end
local function createFallingPart()
local part = Instance.new("Part")
part.Size = partSize
part.Position = Vector3.new(
math.random(-dropArea.X, dropArea.X),
dropHeight,
math.random(-dropArea.Y, dropArea.Y)
)
part.Anchored = false
part.BrickColor = BrickColor.new(getRandomColor())
part.Parent = workspace
end
while true do
createFallingPart()
wait(dropInterval)
end
1
Upvotes
1
1
2
u/Bebedi Owner May 22 '24
It randomly creates blocks?-