RoblotXRB
|
  |
| Joined: 16 Nov 2014 |
| Total Posts: 2068 |
|
| |
|
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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
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
|
  |
| Joined: 16 Nov 2014 |
| Total Posts: 2068 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 16 Nov 2014 |
| Total Posts: 2068 |
|
|
| 10 Mar 2016 03:50 AM |
| BUMP DDDDDDAAAAAAAAAAYYYYYY |
|
|
| Report Abuse |
|
|
RoblotXRB
|
  |
| Joined: 16 Nov 2014 |
| Total Posts: 2068 |
|
| |
|
|
| 11 Mar 2016 05:13 AM |
| Use the PlayerGui not the StarterGui |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|