각종 소식, 링크와 스크립트를 볼려면 더보기 클릭🔥
📒 로블록스 게임 만들기를 더 자세히 알고 싶다면? (게임만들기 책) : https://search.shopping.naver.com/sea...
🔴구독은 저에게 큰힘이 됩니다^^
👍좋아요는 기본이겠죠?
🔔알림설정은 제 영상을 가장 빠르게 보실 수 있어요
⚡제 채널에서 다양한 영상을 찾아보세요~
🎁 옐롯 채널에 가입하여 혜택을 누려보세요! (배지, 이모티콘, 혜택)
/ @yellotstudio
📢 옐롯 그룹에 들어와 가입하신분들과 의견을 나누어 보세요 :D
https://www.roblox.com/groups/5866875...
📢 디스코드 옐롯의 커뮤니티
/ discord
✌ 로블록스 스튜디오 다운로드 하려면?
https://www.roblox.com/create
✌ 로블록스 스튜디오 초보라면 필수!
• 로블록스 스튜디오 설치 부터 기본 조작 완전 정복 기초편
스크립트:
local MusicFolder = game.Workspace.MusicFolder:GetChildren() --폴더 안에 있는 노래들 구하기
while wait() do --약 0.03초마다 반복
for i = 1, #MusicFolder do --폴더 안에 있는 노래 수 만큼 반복
--[[ 지금 부터 나올 MusicFolder[i]는 폴더 안에 있는 노래 중 하나를 뜻함
4번줄 반복 시마다 MusicFolder[i]의 값이 다음 노래로 바뀜 ]]
if not MusicFolder[i].IsLoaded then --노래가 로딩이 되지 않았다면
continue --다시 4번줄 부터
else --로딩이 됐다면
MusicFolder[i]:Play() --노래 플레이
MusicFolder[i].Ended:Wait() --노래가 끝날 때까지 대기
wait(3) --3초 더 대기
end
end
end
노래 ON/OFF 스크립트:
local Gui = script.Parent --MusicGui
local Play = Gui:WaitForChild("Play") --ScreenGui 안에 있는 플레이 Value
local MusicFolder = game.SoundService.MusicFolder:GetChildren() --폴더 안에 있는 노래들 구하기
Gui.TextButten.MouseButton1Click:Connect(function() --버튼을 클릭하면
if Play.Value then --Play가 true라면
Gui.TextButten.Text = "노래 켜기" --버튼 텍스트 바꾸기
Gui.TextButten.BackgroundColor3 = Color3.new(0.19, 1, 0.19) --버튼 색 바꾸기
Play.Value = false --Play를 false로
else --Play가 false라면
Gui.TextButten.Text = "노래 끄기" --버튼 텍스트 바꾸기
Gui.TextButten.BackgroundColor3 = Color3.new(1, 0.19, 0.19) --버튼 색 바꾸기
Play.Value = true --Play를 true로
end
end)
while wait() do --약 0.03초마다 반복
--추가 부분 (플레이 되고 있는 노래가 있다면 중지)
for i, v in pairs(MusicFolder) do
if v.Playing then
v:Stop()
end
end
---------
for i = 1, #MusicFolder do --폴더 안에 있는 노래 수 만큼 반복
--[[ 지금 부터 나올 MusicFolder[i]는 폴더 안에 있는 노래 중 하나를 뜻함
반복 시마다 MusicFolder[i]의 값이 다음 노래로 바뀜 ]]
if not MusicFolder[i].IsLoaded then --노래가 로딩이 되지 않았다면
continue --다시 4번줄 부터
else --로딩이 됐다면
if not Play.Value then --Play가 false라면
MusicFolder[i].Volume = 0 --볼륨 0
else --그 반대라면
MusicFolder[i].Volume = 0.5 --볼륨 0.5
end
MusicFolder[i]:Play() --노래 플레이
Play.Changed:Connect(function() --Play가 바뀌면
if not Play.Value then --Play가 false라면
MusicFolder[i].Volume = 0 --볼륨 0
else --그 반대라면
MusicFolder[i].Volume = 0.5 --볼륨 0.5
end
end)
MusicFolder[i].Ended:Wait() --노래가 끝날 때까지 대기
wait(3) --3초 더 대기
end
end
end
노래 ON / OFF 버튼 GUI 모델링크: https://www.roblox.com/library/124272...
노래 바꾸기 GUI 모델링크: https://www.roblox.com/library/124490...
🚩옐롯 채널 이메일: [email protected] (광고문의, 스튜디오 질문)