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
번호 분류 제목 날짜 조회 수
2324 컴퓨터잡담 윈도우10 운영체제에 크롬브라우저를 사용할 때 웹사이트 인증서 설치하는 방법 2023.03.25 15606
2323 파이썬 파이썬에서 captCha 분석 프로그램을 만들 수 있을까? 2023.03.25 11714
2322 [Docs]스프레드시트 구글 스프레드시트에서 O열=입금완료 가 있는 행은 행 전체가 노란색으로 변하게 하기 2023.03.24 10046
2321 재미재미 수 0, 1, 3, 4, 6, 7, 8을 한 번씩만 사용하여 만든 일곱 자리 수입니다. 6750000보다 크고 6800000보다 작은 수 입니다. 일의 자리 숫자와 백의 자리 숫자의 합은 십의 자리 숫자와 같습니다. 조건4) 백의 자리 숫자는 일의 자리 숫자보다 작습니다. 위의 조건을 모두 만족하는 수를 구하시오. 2023.03.19 8854
2320 재미재미 은행에 예금한 돈 35200000원을 100만원 짜리와 10만원 짜리 수표로만 찾았더니 수표가 모두 55장이었습니다. 은행에서 찾은 100만원 짜리 수표는 몇 장입니까? 2023.03.19 7517
2319 컴퓨터잡담 녹화기 Play Mode file 2023.03.17 6780
2318 파이썬 웹 페이지에서 동적으로 생성되는 데이터 가져오는 방법 2023.03.15 6934
2317 주식 아진산업 기업분석 및 전망 2023.03.13 7446
2316 회로도전자부품 전기선 + PIR 감지기 + LED 결선도 file 2023.03.13 3646
2315 주식 디지캡 한동훈 수혜이슈와 기업분석 및 전망 2023.03.12 3191
Board Pagination Prev 1 2 3 4 5 ... 235 Next
/ 235

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소