this is what i have so far

local Quest = script.Parent.main
local Questparts = Quest:GetChildren()

workspace.TouchPart.Touched:Connect(function(hit)
	local hum = hit.Parent:FindFirstChild("Humanoid")
	if hum then
		for i,v in pairs(Questparts) do
	 if v.Quantity.Value == "Stone" then
		v.Quantity.Text = "0"
			end
		end
	end
end)

2 comments

1

this website is to ask questions for scripting not to ask someone to help you make your game for free

0

ur missing then on line 8