Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

A sound isnt listening to the properties I set it to?

Asked by 6 years ago

Yes, odd question I know, but I dont know any other way to really ask it.

I have a sound and its inside serverstorage. When a player is teleported to the map its supposed to start the sound (which it does). But it doesnt remember the properties I set and it also is only local so other people cannot hear it.

I have filtering enabled turned on. When a player is teleported he is supposed to be breathing quietly but instead its at full blast and none of the settings are remembered. Here is the script.

local breathing = game.ServerStorage:WaitForChild("Breathing"):Clone()

    breathing.EmitterSize = 1
    breathing.Looped = true
    breathing.MaxDistance = 12
    breathing.Volume = 0.4
    breathing:Play()

Now to give you more clarity, that is a small portion of the script. Its inside a function so it is running, trust me I know its running because when I join my ears die.

It plays it but none of the properties work.

1
maybe put the sound in replicated storage abnotaddable 920 — 6y
0
LocalScripts cannot access ServerStorage. XAXA 1569 — 6y
0
In addition, when a LocalScript edits a sound's properties, the edited properties will not replicate to everyone else. If you must clone a sound from the server to a player, then edit the properties from the server beforehand, or just edit the sound itself. XAXA 1569 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

maybe instead of doing

local breathing = game.ServerStorage:WaitForChild("Breathing"):Clone()

you can do

local breathing = game.ServerStorage.Breathing:Clone()

you don't have to do wait for child if the sound is in server storage Hope this helped if it didn't then I really don't know :D of btw if you are making this for players then do this

local player = game.Players.LocalPlayer
local char = player.Character
local breathing = game.ServerStorage.Breathing:Clone().Parent = char

breathing.EmitterSize = 1
breathing.Looped = true
breathing.MaxDistance = 12
breathing.Volume = 0.4
breathing:Play()
Ad

Answer this question