I know that there's ClickDetector, but I have a really basic understanding of LUA. If there isn't a simple explanation, then maybe someone could give me a link to a video helping? An example could be clicking a button and the door sliding open (not disappearing, the sliding is key to what I'm thinking of). Thanks for any help or advice.
For a basic sliding door to slide up you need the total height of the door
01 | height = 6 |
02 | parts = script.Parent:GetChildren() |
03 | num = height/. 1 |
04 |
05 | for i = 1 ,num do |
06 | for i,v in pairs (parts) do |
07 | if v.ClassName = = "Part" then |
08 | v.CFrame = CFrame.new(v.CFrame+CFrame.new( 0 ,. 1 , 0 ) |
09 | end |
10 | end |
11 | wait(. 01 ) |
12 | end |