English 中文(简体)
How do I program frames?
原标题:
  • 时间:2010-11-28 05:04:01
  •  标签:
  • roblox

Like if i click on a fridge door and it opens, or click on a chest and the top slides off.

问题回答

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.





相关问题
Lua-边远 不采取行动

我正试图从一个工具中发射一台遥控器,并收到服务器成像机,但在发射时,我获得“Mine不是复制后Storage”的有效成员......。

Making an AI - How to make path finding?

Hey, I am making an AI on ROBLOX and I can t seem to figure out where to start for path finding, the most common AI feature. Can anyone help? P.S. I don t know any raycasting, so I can t use that as ...

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 off.

How do I CFrame parts?

I ve heard that you can tilt a part by a precise amount using the .CFrame property. However, I m unclear on how to use it. The following code does not work: Workspace.Part.CFrame = CFrame.new(90,0,45)...

热门标签