I want to make my current item text which is the "0/3" to update everytime I pick up an item. Right now I can only add 1 and it just stops there ;__; thanks in advance to anyone that helps!
Code:
local PartsPicked = 0
for i,v in pairs(workspace.Items:GetChildren()) do
v.Name = "Handle"
local trigger = Instance.new("ProximityPrompt")
local tool = Instance.new("Tool")
tool.Parent = workspace
trigger.Parent = v
trigger.Triggered:Connect(function(plr)
local screengui = plr.PlayerGui.ScreenGui
print(v.Name.." has been touched by "..plr.Name)
v.Parent = tool
tool.Parent = plr.Backpack
screengui.Progress.Text = tostring(PartsPicked + 1).."/3"
print(PartsPicked)
end)
end```
** You are now Level 2! **