Reputation: 1
Like if i click on a fridge door and it opens, or click on a chest and the top slides off.
Upvotes: 0
Views: 158
Reputation: 171
Add a ClickDetector inside of it, and add a script that does what you want to do. To open it sideways you can do this:(It might not turn the right way)
for i = 1, 90 do
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi*90/1, 0)
wait()
end
Upvotes: 2
Reputation: 81
Add a clickdetector, and script it so onclick the parent part moves from one place to another.
Upvotes: 0