RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a gear that when you click a map will be genareted"
-- local script for gear local tool = script.Parent local player = game.Players.LocalPlayer local mouse = player:GetMouse() local function generateMap() -- You can replace this with your own map generation logic local mapSize = 10 local blockSize = 10 for x = 1, mapSize do for z = 1, mapSize do local block = Instance.new("Part") block.Size = Vector3.new(blockSize, blockSize, blockSize) block.Position = Vector3.new(x * blockSize, 0, z * blockSize) block.Anchored = true block.Parent = game.Workspace end end end tool.Activated:Connect(generateMap)