generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Gui sound help

Previous Thread :: Next Thread 
FrostedFlakes925 is not online. FrostedFlakes925
Joined: 15 Oct 2010
Total Posts: 170
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
FrostedFlakes925 is not online. FrostedFlakes925
Joined: 15 Oct 2010
Total Posts: 170
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
enzotinman1 is not online. enzotinman1
Joined: 22 Jun 2012
Total Posts: 408
08 Dec 2016 06:39 PM
You have to parent the sounds to workspace i believe.
Report Abuse
FrostedFlakes925 is not online. FrostedFlakes925
Joined: 15 Oct 2010
Total Posts: 170
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
enzotinman1 is not online. enzotinman1
Joined: 22 Jun 2012
Total Posts: 408
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
FrostedFlakes925 is not online. FrostedFlakes925
Joined: 15 Oct 2010
Total Posts: 170
08 Dec 2016 08:13 PM
mmk ty
Report Abuse
Tynezz is not online. 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
FrostedFlakes925 is not online. FrostedFlakes925
Joined: 15 Oct 2010
Total Posts: 170
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image