Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how could I locally change audio if it's in a brick?

the roblox wiki says that local scripts can only change: A Player's Backpack, such as a child of a Tool A Player's Character model A Player's PlayerGui A Player's PlayerScripts The ReplicatedFirst service

how could i change audio locally if it's in a brick. is it even possible?

you could do something like

script.Parent.Touched:Connect(function(hit) 
game.Workspace.Part.Sound.Reverb:Destroy()
end)

but that would make it where it's been destroyed for everyone. how could i do this for only one player?

1 comment

0

you could use a remote event and have a local script destroy the sound

1 answer

you could do that, by putting your sounds into StarterGui and put this inisde the touched script:

script.Parent.Touched:Connect(function(hit)
       game.Players[hit.Parent.Name].PlayerGui.Sound:Play()
        game.Players[hit.Parent.Name].PlayerGui.Sound2:Stop()
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.