📜  如何在 roblox srudio 中使用脚本创建部件 - Lua 代码示例

📅  最后修改于: 2022-03-11 14:54:54.593000             🧑  作者: Mango

代码示例1
local BuildPart = Instance.new("Part",game.Workspace) --Directory of The Part
BuildPart.Size = Vector3.new(50,50,50)                   --The Size of the Part
BuildPart.Position = Vector3.new(-37, -0.5, -90)      --The Position of The Part
BuildPart.Anchored = true                             --Anchores The Part