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

How Can I Change Sound Volume On Touch?

Asked by 9 years ago

How can I change sound volume that is in player gui when it is touched.

1 answer

Log in to vote
0
Answered by 9 years ago

Lol figured it out: This lua

script.Parent.Touched:connect(function(hit)
    game.Players:GetPlayerFromCharacter(hit.Parent).PlayerGui.Music.Volume = "1"
end)

Works on script not localscript.

Ad

Answer this question