🔊HOW TO ADD MUSIC INTO DIFFERENT AREAS 🛠️ Roblox Studio Tutorial 🛠️
Автор: Itz_FloppyFish
Загружено: 2022-07-22
Просмотров: 212693
Описание:
In todays video I show you how to add music into multiple different areas!
Hope you enjoyed the video, Have a lovely rest of your day!
If you are a bit confused what to do, Feel free to message me on Discord and Ill help you out!
Script:
local AreaSounds = Instance.new("Sound", script)
AreaSounds.Looped = true
local plr = script.Parent
local Presser = plr:WaitForChild("HumanoidRootPart")
local DifferentAreas = workspace:WaitForChild("Areas")
local CurrentArea = nil
game:GetService("RunService").Heartbeat:Connect(function()
local raycast = Ray.new(Presser.Position, Presser.CFrame.UpVector * -1000)
local part = workspace:FindPartOnRayWithWhitelist(raycast, {DifferentAreas})
if part and part.Parent == DifferentAreas then
if part ~= CurrentArea then
CurrentArea = part
AreaSounds.SoundId = CurrentArea.Sound.SoundId
AreaSounds:Play()
end
else
CurrentArea = nil
AreaSounds:Stop()
end
end)
🌟 Floppys Discord Server: / discord
🌟 Floppys Roblox Group: https://www.roblox.com/groups/5254090...
🔥 Floppys Roblox Game : https://www.roblox.com/games/11301003...
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: