so i want to make a gui that show how much thing u got
hitbox.Touched:Connect(function(hitpart)
if not hitpart:IsDescendantOf(char) then
if hitpart.Parent:FindFirstChild("IsAOre") then
local ore = hitpart.Parent
if ore:FindFirstChild("Stone") then
local hpvalue = ore:FindFirstChild("Stone")
hpvalue = hpvalue - StoneDamage
hitbox:Destroy()
local choosedrop = math.random(1, 2)
if choosedrop == 1 then
local findstonevalue = player.Backpack:FindFirstChild("Data"):FindFirstChild("Ore"):FindFirstChild("Stone")
if findstonevalue then
findstonevalue.Value = findstonevalue.Value + math.random(1,3)
player.PlayerGui.GotGui.ThingYouGet.Visible = true
player.PlayerGui.GotGui.ThingYouGet.Text = hitpart.Parent.Name.. "X"
end
end
end
end
end
end)