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
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
you forgot to put hit parameter when calling a(), replace function() with function(hit) and a() with a(hit)
It still dont wok
"if hit == true" is always going to be false, "hit' is always going to be an Instance, remove that if statement