its suppost to be a collector or something

local value = game.Workspace.Moneydisplayer.Value

for i,v in pairs(game.Workspace.Parts:GetChildren()) do
	if v.Name == "Moneycollecter" then
		v.touched:Connect(function(part)
			value.Value = value.Value + 1
			part:Destroy()
		end)
	end
end

3 comments

0

Is there a error?

0

yes

0

wait no it says nothing and does nothing past the if