开发者

How do I program frames?

开发者 https://www.devze.com 2023-01-27 11:40 出处:网络
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 si

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

精彩评论

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