Run it
Copy the script and paste it into your executor.
local player = game:GetService("Players").LocalPlayer
local runService = game:GetService("RunService")
-- Create UI
local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
screenGui.Name = "WoodTypeCounter"
local frame = .(, screenGui)
frame.Size = .(, , , )
frame.Position = .(, , , )
frame.BackgroundColor3 = .(, , )
frame.BackgroundTransparency =
label = .(, frame)
label.Size = .(, -, , -)
label.Position = .(, , , )
label.BackgroundTransparency =
label.TextColor3 = .(, , )
label.TextSize =
label.Font = .Font.Code
label.TextXAlignment = .TextXAlignment.Left
label.TextYAlignment = .TextYAlignment.Top
label.TextWrapped =
()
woodCounts = {}
_, item (:())
item.Name == item:()
ownerValue = item:() item.Parent:()
ownerValue ownerValue.Value == player
treeClass = item:() item.Parent:()
woodType = treeClass treeClass.Value
woodCounts[woodType] = (woodCounts[woodType] ) +
woodCounts
.(()
data = ()
displayText =
total =
woodType, count (data)
displayText = displayText .. .(, woodType, count)
total = total + count
displayText = displayText ..
displayText = displayText .. .. total
label.Text = displayText
.()
)Counts wood

Universal