button = game.Workspace.Parent.Workspace.Part
function a(hit)
if hit == true then button.Parent.Button.Transparency = 1 button.Parent.Button.CanCollide = false
end
end
workspace.Part.Touched:connect(function()
a()
end)
Im new to script plsHep
1
you forgot to put hit parameter when calling a(), replace function() with function(hit) and a() with a(hit) imKirda4491— 3y