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: How to make a local sound?

Previous Thread :: Next Thread 
RoblotXRB is not online. RoblotXRB
Joined: 16 Nov 2014
Total Posts: 2068
05 Mar 2016 08:47 AM
Title says it all.
Report Abuse
RoblotXRB is not online. RoblotXRB
Joined: 16 Nov 2014
Total Posts: 2068
05 Mar 2016 08:56 AM
Wait the title doesn't say it all!
I wanna Local Sound on touch! Cuz im making an RPG game and i need some music change when the theme is different.
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
05 Mar 2016 09:09 AM
Have a server script in the part, a remote event, and a local script. I'm sure you can figure it out, you'll need FE turned on though.


Report Abuse
badguy1233 is online. badguy1233
Joined: 23 Jul 2009
Total Posts: 885
05 Mar 2016 09:49 AM
Put sound in localplayer
Report Abuse
Ripepperoni is not online. Ripepperoni
Joined: 04 Jul 2010
Total Posts: 5715
05 Mar 2016 10:02 AM
Play the sound in a gui
Report Abuse
RoblotXRB is not online. RoblotXRB
Joined: 16 Nov 2014
Total Posts: 2068
07 Mar 2016 01:28 AM
i need easier explaination since im a nub scripter.



BUUMPPPP! DAY!!!
Report Abuse
RoblotXRB is not online. RoblotXRB
Joined: 16 Nov 2014
Total Posts: 2068
07 Mar 2016 02:16 AM
B2
Report Abuse
Fatul is not online. Fatul
Joined: 28 Sep 2008
Total Posts: 254
07 Mar 2016 04:39 AM
Place the sound in PlayerGui.

if its played by scripts make it a localscript, in PlayerGui aswell.


inb4 troll post.
Report Abuse
RoblotXRB is not online. RoblotXRB
Joined: 16 Nov 2014
Total Posts: 2068
08 Mar 2016 07:40 AM
^ starter gui or player?








#CODE print 'Still Learning Developing Games'
Report Abuse
Poine is not online. Poine
Joined: 14 Aug 2011
Total Posts: 391
08 Mar 2016 07:47 AM
PlayerGui is a clone of StarterGui for when a player enters the game.

If you "Play Solo" in studio you can find it under game.Players.RoblotXRB.PlayerGui


Report Abuse
RoblotXRB is not online. RoblotXRB
Joined: 16 Nov 2014
Total Posts: 2068
09 Mar 2016 04:55 AM
Hmm am i doing something wrong here?
I put it in my XP Bar GUI
and then i put the script in the part.

Then i inserted this script

script.parent.Touched:connect(function()

game.StarterGui.XPBar.Sound:Play()

end)
Report Abuse
RoblotXRB is not online. RoblotXRB
Joined: 16 Nov 2014
Total Posts: 2068
10 Mar 2016 03:50 AM
BUMP DDDDDDAAAAAAAAAAYYYYYY
Report Abuse
RoblotXRB is not online. RoblotXRB
Joined: 16 Nov 2014
Total Posts: 2068
11 Mar 2016 02:33 AM
BUMP BUMP BUMP!!
Report Abuse
Dark_Legacy is not online. Dark_Legacy
Joined: 15 Jun 2013
Total Posts: 6333
11 Mar 2016 05:13 AM
Use the PlayerGui not the StarterGui
Report Abuse
iOwn_You is not online. iOwn_You
Joined: 21 Dec 2012
Total Posts: 599
11 Mar 2016 05:17 AM
if in a local script then


script.parent.Touched:connect(function()

game.Players.LocalPlayer.PlayerGui.XPBar.Sound:Play()

end)

if in a regular script then


game.Players.PlayerAdded:connect(function(player)
script.parent.Touched:connect(function()

player.PlayerGui.XPBar.Sound:Play()

end)
end)
Report Abuse
RoblotXRB is not online. RoblotXRB
Joined: 16 Nov 2014
Total Posts: 2068
12 Mar 2016 04:11 AM
^ Tried local script one on a local sript and regular script on a regular script but neither worked :/
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