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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

로블록스 스튜디오하늘에서 부품을 무작위로 떨어뜨리는 스크립트

 

 

 

5초마다하늘에서 똥볼이 떨어지는 스크립트

 

 

 

 

while wait(5) do

local pos1 = math.random(-1000,1000)

local pos2 = math.random(-1000,1000)

 

local part  = Instance.new('Part', game.Workspace)

part.Name = "Ball"

part.Size = Vector3.new(1,1,1)

part.Color = Color3.new(1, 1, 1)

part.BrickColor = BrickColor.Random()

part.Material = Enum.Material.Neon

part.Shape = Enum.PartType.Ball

part.Position = Vector3.new(pos1,21,pos2)

 

end

 

 

 

하늘에서 부품을 무작위로 떨어뜨리는 이 스크립트가 있지만 이 스크립트를 임의의 부품으로 드래그하고 부품을 확장할 수 있도록 만들려고 합니다.

부품 내 임의의 위치에 부품이 위치하게 되는 스크립트입니다. 

 

 

local Spawner = script.Parent

while wait(5) do

for i = 1,500 do

local p = mesh:Clone()

local Hight = Spawner.CFrame.Y

local XSize = Spawner.Size.X/2

local ZSize = Spawner.Size.Z/2

  p.CFrame = CFrame.new(math.random(-XSize,XSize),Hight,math.random(-ZSize,ZSize))

  p.Parent = Spawner

wait(.2)

end

end

 


 

 

모든 MovePart를 그룹화한 다음

 

local groupName = game.Workspace.GroupName

local block = groupName[math.random(1,#groupName)]

key.Position = block.Position

 

 

 

https://www.youtube.com/watch?v=UozKm0T96xs

 

 

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

?

List of Articles
번호 분류 제목 날짜 조회 수
92 Server 8기가 램에 맞는 Mysql config 셋팅 값 1 2016.02.22 3901
91 Server Apache & Mysql 셋팅방법(httpd-mpm.conf / my.ini) 2013.05.13 13741
90 Server APACHE PHP 에러 잡기 1 2016.03.23 10075
89 Server Apache에 대한 mod_proxy 지원 구성 2016.09.06 1842
88 Server APMSETUP7 PHP 업그레이드 2015.06.02 6403
87 Server asp,jsp,php 아이피(ip) 가져오기/확인 file 2013.01.05 11906
86 Server CSS, JS파일, gzip으로 한꺼번에 압축해서 전송하기 2016.03.08 1280
85 Server ECS P43T-AD3, Asus C381GM, Driver(두번째 사용했던 서버 드라이버) file 2016.04.12 2839
84 Server FileZilla FTP SERVER 패시브모드 셋팅방법 file 2016.12.22 8891
83 Server Google Chart API 이용하기 11 file 2013.04.10 20930
82 Server HP XW6600 E5430 SPEC file 2016.11.06 4799
81 Server html) 프레임 나누기 4 2013.03.02 10240
80 Server innodb_use_sys_malloc to FALSE 2016.08.24 2709
79 Server innodb_use_sys_malloc에 따라 The InnoDB memory heap is disabled mysql error 메시지 1 2016.08.23 3882
78 Server jQuery CDN 2016.09.11 4350
77 Server make ping with PHP(핑테스트) 11 2013.04.01 11189
76 Server Minify로 CSS, JS파일, gzip으로 한꺼번에 압축해서 전송하기 file 2016.11.27 4385
75 Server MySQL - 속도저하에 따른 웹페이지 접속 지연 2016.03.03 1363
74 Server mysql 16CPU / 16GB My.cnf 1 2016.07.26 2538
73 Server MySQL 5.6 my.cnf 글로벌 변수인지 세션변수인지 확인 2016.03.24 1552
Board Pagination Prev 1 2 3 4 5 Next
/ 5

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소