|
| 08 Dec 2016 06:29 PM |
Hi! So I'm trying to make the sound played from this script be heard by everyone around it but it seems to just play it to me and no one else can hear it! Please help thanks!
Player = game.Players.LocalPlayer PR1 = script.Parent.PR1 PR2 = script.Parent.FR1 Play = script.Parent.Frame.Fire Box = script.Parent.Frame
function MouseEnterPlayButton() Play.FontSize = "Size32" PR1:Play() end
function MouseLeftPlayButton() Play.FontSize = "Size28" PR1:Play() end
function PlayGame() PR2:Play() end
Play.MouseEnter:connect(MouseEnterPlayButton) Play.MouseLeave:connect(MouseLeftPlayButton) Play.MouseButton1Down:connect(PlayGame)
|
|
|
| Report Abuse |
|
|
|
| 08 Dec 2016 06:32 PM |
Oops forgot to mention "PR1" AND "FR2" are audio and "Fire" is the gui's text box |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2016 06:39 PM |
| You have to parent the sounds to workspace i believe. |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2016 07:36 PM |
Yes! but I want the sound to be played relatively to the tool, wouldn't making it parent to workspace play across the server? :L
Thanks |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2016 07:45 PM |
| I just tested it and when i put the sound in the Handle of the tool it works fine. |
|
|
| Report Abuse |
|
|
| |
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 08 Dec 2016 08:17 PM |
Placing it into 'PlayerGui' will be a guaranteed local sound :)
|
|
|
| Report Abuse |
|
|
|
| 08 Dec 2016 09:17 PM |
| Yes ^^ I agree but the gui is linked to a tool and will only show up when the tool is equipped, I tested the script out with my friend on a server but it seems like the sound only play on their side of the game :L |
|
|
| Report Abuse |
|
|