okay hi!
I currently have this script:
local open = false -- a variable to define if its open or not
script.Parent.MouseClick:Connect(function()
model = workspace["Model"] -- A model in Workspace (aka Set Piece)
if open then -- if open or if open == true
open = false -- we set it to false so it doesn't do the same code
model.Transparency = 1
model.CanCollide = false
else -- you prob get this one lol
model.Transparency = 0
model.CanCollide = true
end
end)
So like, I am wanting this button to be able to make A a different model go transparent and cancollide false. currently, not working
help!

1 comment
do you want gui or object?