local model =script.Parent.itens:GetChildren()
for i,parts in pairs(model)do
parts.ProximityPrompt.Triggered:Connect(function(hit)
if hit.Parent.Name == ("Tool")then
if parts.ProximityPrompt.ActionText == "Coleta" then
parts.Transparency = 1
hit.Minerios_Dinheiro.Diamante.Value += 1
parts.ProximityPrompt.Enabled=false
wait(10)
parts.ProximityPrompt.Enabled=true
parts.Transparency = 0
end
end
end)
end
you made a few typos. try correcting your script i saw one part where the
if hit.Parent.Name == (“Tool”) then
you spelt parent like pareant correct that
How so signaled can i help how it signals