I am a new developer and i got this script from Roblox ai i want to make it so when i press the text button a part will disappear
This is the script that i got
local button = script.Parent:FindFirstChild("PickUpMushroom")
local part = game.Workspace:FindFirstChild("Important Stuff")
if button and part then
button.MouseButton1Click:Connect(function()
part.Transparency = 1
part.CanCollide = false
end)
end
** You are now Level 1! **