RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a gui in the top of the screen wich tells how many parts is in the game"
-- local script local player = game:GetService("Players").LocalPlayer local partsCounterGui = player.PlayerGui:WaitForChild("ScreenGui"):WaitForChild("PartsCounter") while true do local partsCount = 0 for _, obj in ipairs(game.Workspace:GetChildren()) do if obj:IsA("Part") then partsCount = partsCount + 1 end end partsCounterGui.Text = "Parts in the game: " .. partsCount wait(1) end