开发者

How do I program frames?

Like if i click on a fridge door and it opens, or click on a chest and the top slides of开发者_高级运维f.


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


Add a clickdetector, and script it so onclick the parent part moves from one place to another.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜