字幕列表 影片播放
This video will show you
這個視頻將告訴你
how to make a hat in Roblox.
如何在Roblox中製作一個帽子。
Before we begin, it's currently impossible
在我們開始之前,目前不可能
to upload your own hats to the Roblox catalog,
來上傳你自己的帽子到Roblox目錄。
so the hats that we create in this video
所以我們在這個視頻中創造的帽子
will only be able to be worn within Roblox Studio.
將只能在Roblox工作室內佩戴。
There are many tools that we can use
有許多工具我們可以使用
to create a hat on Roblox.
來在Roblox上創建一個帽子。
If you'd like, you can take
如果你願意,你可以採取
a pre-created mesh from the toolbox,
一個從工具箱中預先創建的網格。
or you can design your own hat using parts.
或者你可以用零件設計你自己的帽子。
That's what I'm going to do.
這就是我打算做的事。
I'm going to create a crown.
我要創造一個皇冠。
Click on the arrow under the part button
點擊零件按鈕下的箭頭
to insert a cylinder.
來插入一個圓柱體。
Select the scale tool and drag the handles
選擇縮放工具並拖動手柄
to change the size of the cylinder.
來改變氣缸的大小。
Now I'm going to duplicate the cylinder
現在我將複製圓柱體
and use the scale tool again
並再次使用縮放工具
to make this cylinder slightly smaller,
以使這個圓柱體略微變小。
but also taller in the other axis.
但在另一個軸上也更高。
Then, using the move tool, I will move this cylinder
然後,使用移動工具,我將移動這個圓柱體
into the middle of our first cylinder.
進入我們的第一個氣缸的中間。
Select the smaller cylinder,
選擇較小的圓柱體。
and in the model tab of the ribbon menu, select "Negate."
並在帶狀菜單的模型標籤中,選擇 "否定"。
Then select the other cylinder
然後選擇另一個氣缸
by holding down control, or command on a Mac,
按住控制鍵,或者Mac上的命令鍵。
and select "Union" in the model tab.
並在模型標籤中選擇 "聯盟"。
This will create a hole in our cylinder
這將在我們的圓柱體上形成一個洞
so it looks more like a crown.
所以它看起來更像一個皇冠。
Now click on the part button to insert another part
現在點擊零件按鈕,插入另一個零件
and drag it on top of our crown.
並把它拖到我們的皇冠之上。
Use the scale tool to resize it.
使用比例工具來調整它的大小。
Once you've finished creating your hat,
一旦你完成創建你的帽子。
create another part and name it "Handle."
創建另一個部件,並將其命名為 "手柄"。
Make sure that the handle name
請確保手柄名稱
has a capital "H" at the start,
在開頭有一個大寫的 "H"。
otherwise the hat will not work properly.
否則,這頂帽子將無法正常工作。
Resize this handle so that it covers all of the hat.
調整這個手柄的大小,使其覆蓋所有的帽子。
Then set its transparency to 1.
然後將其透明度設置為1。
Let's weld all of the parts we have created
讓我們把我們創建的所有部件焊接起來
to the handle parts.
到手柄部分。
Insert a weld into the handle part.
在手柄部分插入一條焊縫。
Click on "WeldConstraint."
點擊 "WeldConstraint"。
Set the Part0 property to the handle part
將Part0屬性設置為手柄部分
and the Part1 to the other part.
和Part1到另一個部分。
Repeat this for all other parts you've created.
對你創建的所有其他部分重複這一步驟。
Now right-click on our handle
現在右鍵點擊我們的手柄
and choose "Insert Object."
並選擇 "插入對象"。
Select an attachment.
選擇一個附件。
Name this attachment "HatAttachment."
將這個附件命名為 "HatAttachment"。
This attachment will snap to a position on the player's head
這個附件將卡在玩家頭部的一個位置上
so that if the hat doesn't fit properly,
這樣,如果帽子不合適。
we can adjust the hat attachment relative to the head.
我們可以調整相對於頭部的帽子附件。
Move it slightly underneath our crown
把它稍微移到我們的王冠下面
by selecting the move tool and by dragging the handles.
通過選擇移動工具和拖動手柄來實現。
Next, in the workspace, insert an accessory
接下來,在工作區,插入一個附件
by right-clicking and selecting "Insert Object,"
通過右擊並選擇 "插入對象"。
and then select "Accessory."
然後選擇 "附件"。
Select all of the parts we have created for our hat.
選擇我們為帽子創建的所有部件。
Make sure that the "CanCollide" property is checked
確保 "CanCollide "屬性被選中。
and the "Anchored" property unchecked
並且 "錨定 "屬性未被選中
in the properties window.
在屬性窗口中。
Then drag the parts into our accessory
然後將零件拖入我們的附件
via the explorer panel.
通過探索者面板。
We've now created our hat.
我們現在已經創建了我們的帽子。
Let's drag the hat down into the "StarterCharacter"
讓我們把帽子拖到 "StarterCharacter "中。
script folder underneath "StarterPlayer."
"StarterPlayer "下面的腳本文件夾。
Then click on the play button in the ribbon menu.
然後點擊功能區菜單中的播放按鈕。
We will spawn with our hat on.
我們將戴著帽子產卵。
If the hat doesn't fit properly,
如果帽子不合適。
adjust the hat attachment's position to change the fitting.
調整帽子附件的位置以改變配件。
Make sure also that your handle covers
還要確保你的手柄覆蓋
the entire span of the hat.
整個帽子的跨度。