of     1   

Robbyiscrazy
#197100594Saturday, August 27, 2016 3:25 AM GMT

Im trying to make a garage button. When it is clicked I want it just to make a model disappear. Then when I click another button it will reappear. I am not very good at scripting... How would I do this?
Robbyiscrazy
#197100707Saturday, August 27, 2016 3:26 AM GMT

b
jody7777
#197104809Saturday, August 27, 2016 4:34 AM GMT

model:Destroy() local newModel = model:Clone() newModel.Parent = game.Workspace !!! FOR THE CAUSE
imtellingmommy
#197104931Saturday, August 27, 2016 4:37 AM GMT

wtf? ^ no way in hell
Florian27
#197105073Saturday, August 27, 2016 4:40 AM GMT

put this script in the garage and insert a clickdetector into the garage (the garage should only consist of one part). local s = script.Parent local switch = true s.ClickDetector.MouseClick:connect(function() if switch == true then switch = false s.Transparency = 1 elseif switch == false then switch = true s.Transparency = 0 end end)
thedailyblarg
#197107932Saturday, August 27, 2016 5:48 AM GMT

or you can simplify it to just 2 lines inside the event switch = not switch part.Transparency = (switch and 1) or (not switch and 0)

    of     1