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

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

Asked by 5 years ago

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?

0
you could use a remote event and have a local script destroy the sound Vulkarin 581 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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)
Ad

Answer this question