Skip to content
조회 수 1987 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

로블록스 스튜디오 파트 생성 스크립트

 

 

 Part

 PartType

The Shape property sets the type of shape the object has.

The PartType enum controls the shape value, and has three possible shapes:

Shape/Value Description
Ball A spherical shape, like a basketball.
Cylinder A rod-like shape, like a tin can.
Block The default, brick shape.

To obtain custom part shapes, you can use a MeshPart instead of a Part.

 

 

Code Samples


Create a Part in a Script

The script below spawns a new Part instance and sets several of the part’s properties.

Most notably, the script sets the Part.Shape property to Enum.PartType.Ball. It also names the part JurrasicPart (hehe), anchors it, makes it a child of Workspace, and sets its color to white.

 
 
 
  1. local part = Instance.new("Part") -- Create a new part
  2.  
  3. part.Name = "JurrasicPart" -- Name the part... hehe
  4. part.Anchored = true -- Anchor the part
  5. part.Parent = game.Workspace -- Put the part into the Workspace
  6. part.Shape = Enum.PartType.Ball -- Give the part a ball shape
  7. part.Color = Color3.new(1, 1, 1) -- Set the color to black

 

 


 

 

-- 스크립트(애니메이션 한개) local f = false script.Parent.Activated:Connect(function() if not f then f = true local YAnimation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation) YAnimation:Play() wait(0.7) f = false end end) -- 스크립트끝


 

--스크립트(애니메이션 여러개) local f = false local d = false script.Parent.Activated:Connect(function() if not f then if d == false then f = true local YAnimation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation) YAnimation:Play() wait(0.7) d = true f = false end end end) script.Parent.Activated:Connect(function() if not f then if d == true then f = true local YAnimation2 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation2) YAnimation2:Play() wait(0.7) d = false f = false end end end) --스크립트끝

 

 

로그인 후 댓글쓰기가 가능합니다.

?

List of Articles
번호 분류 제목 날짜 조회 수
34 [Docs]스프레드시트 구글 스프레드시트에서 셀값이 특정일에서 현재일과 3일 이내의 범위에 들어오면 이메일을 발송하는 방법 2023.03.26 40413
33 [Docs]스프레드시트 구글 스프레드시트에서 O열=입금완료 가 있는 행은 행 전체가 노란색으로 변하게 하기 2023.03.24 10046
32 [Docs]스프레드시트 H열에 날짜가 10일 안으로 다가왔다면 메일을 발송하는 스크립트 2023.03.10 2249
31 [Docs]스프레드시트 구글 스프레드시트 스크립트를 사용하여 지메일로 이메일을 보내기 2023.03.10 2673
30 [Docs]스프레드시트 스프레드시트의 값의 변화에 따라 지메일로 메일을 보내는 스크립트 2023.03.10 1660
29 [Docs]스프레드시트 스프레드시트에서 수정, 삭제 버튼 만들기 2023.03.09 1820
28 [Docs]스프레드시트 스프레드시트에서 검색 버튼 만들기 2023.03.09 2131
27 [Docs]스프레드시트 스프레드시트에서 삽입 버튼 만들기(chatGPT 에게 물어봄) 2023.03.09 1437
26 [Docs]스프레드시트 [구글스프레드시트] 현재의 셀주소 참조(address, cell) 2022.01.26 6452
25 [Docs]스프레드시트 구글 스프레드시트 쿼리 사용하기 #3 날짜편 2021.09.26 6234
24 [Docs]스프레드시트 구글 스프레드시트 쿼리 사용하기 #2 2021.09.26 3050
23 [Docs]스프레드시트 스프레드시트 함수 2020.12.27 4824
22 [Docs]스프레드시트 스프레드시트 스크립트 소스 2020.12.26 4891
21 [Docs]스프레드시트 구글 앱스 스크립트(Google Apps Script) 외부에서 실행하기 2 2019.01.09 7048
20 [Docs]스프레드시트 구글 앱스 스크립트(Google Apps Script) 외부에서 실행하기 2019.01.09 6804
19 [Docs]스프레드시트 구글캘린더 CSV 파일로 일괄 기록하기 file 2018.08.31 12291
18 [Docs]스프레드시트 스프레드시트 autohotkey html gmail 스마트폰 이용하여 핑로스 즉시 알림받기 file 2018.01.25 10576
17 [Docs]스프레드시트 google spreadsheets html form post로 전달받기 file 2018.01.23 6879
16 [Docs]스프레드시트 스프레드시트의 내용이 수정될 경우 즉시 메일발송하는 스크립트 테스트 중 file 2018.01.19 7641
15 [Docs]스프레드시트 구글 스프레드시트 ajax POST를 통한 기록 따라해보기 file 2018.01.13 6672
Board Pagination Prev 1 2 Next
/ 2

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소