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.
✓ ANSWER ACCEPTED
How do I make a model move when I click a brick?
1 answer
✓ Accepted answer
For a basic sliding door to slide up you need the total height of the door
height = 6
parts= script.Parent:GetChildren()
num = height/.1
for i = 1,num do
for i,v in pairs(parts) do
if v.ClassName == "Part" then
v.CFrame = CFrame.new(v.CFrame+CFrame.new(0,.1,0)
end
end
wait(.01)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
