Hello, developers! I am making a game but the sound is not playing. I’ve tried to upload to my profile and my group, even giving it permissions. However, it still won’t play. Everything else works in the modulescript.
Modulescript:
local Map = {}
Map.MapModel = script.Parent
function Map:Fog(Boolean)
if Boolean then
for _,v in pairs(game:GetService("Workspace"):FindFirstChild("PlayersInGame"):GetChildren()) do
game:GetService("ReplicatedStorage"):FindFirstChild("Remotes"):FindFirstChild("FogEvent"):FireClient(game:GetService("Players"):GetPlayerFromCharacter(v), true)
end
else
for _,v in pairs(game:GetService("Workspace"):FindFirstChild("PlayersInGame"):GetChildren()) do
game:GetService("ReplicatedStorage"):FindFirstChild("Remotes"):FindFirstChild("FogEvent"):FireClient(game:GetService("Players"):GetPlayerFromCharacter(v), false)
end
end
end
function Map:End(ElevatorMap, Killers, ElevatorTeleportPart, ElevatorEndInt)
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
v.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(ElevatorTeleportPart.Position)
end
for i,v in pairs(Killers:GetChildren()) do
if v:IsA("Model") then
local HumanoidRootPart = v:FindFirstChild("Torso") or v:FindFirstChild("HumanoidRootPart")
HumanoidRootPart.CFrame = CFrame.new(Map.MapModel:FindFirstChild("KillersTeleportPart").Position)
end
end
ElevatorEndInt.Value += 1
wait(5)
Map:Fog(false)
ElevatorMap:Destroy() Killers:Destroy()
end
function Map:Run(ElevatorTeleportPart, ElevatorEndInt)
local ElevatorMap = Map.MapModel:FindFirstChild("Map"):Clone()
ElevatorMap.Parent = game:GetService("Workspace")
local MusicPart = Map.MapModel:FindFirstChild("MusicPart")
local Music = MusicPart:FindFirstChild("Music")
wait(10)
Music.SoundId = "rbxassetid://"..10625248955 -- This sound isn't playing
Music.Volume = 0.75
Music:Play()
Map:Fog(true)
wait(5)
local Killers = Map.MapModel:FindFirstChild("Killers"):Clone()
Killers.Parent = game:GetService("Workspace")
wait(10)
Map:End(ElevatorMap, Killers, ElevatorTeleportPart, ElevatorEndInt)
end
return Map
Sound Properties:
Thanks!