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 » Scripting Helpers
Home Search
 

Re: :P

Previous Thread :: Next Thread 
AboveAwesome is not online. AboveAwesome
Joined: 24 Jul 2010
Total Posts: 1823
01 Aug 2011 08:51 PM
If you want a sound/music to be heard only by one player, what should the sound's parent be, Player or Character?
Report Abuse
AboveAwesome is not online. AboveAwesome
Joined: 24 Jul 2010
Total Posts: 1823
01 Aug 2011 08:57 PM
Halp?
Report Abuse
scepile3 is not online. scepile3
Joined: 27 Feb 2009
Total Posts: 260
01 Aug 2011 09:30 PM
Uh... Why not test it and find out?

(FYI: Server Test Mode + Player Test Mode = testing online server)
Report Abuse
AboveAwesome is not online. AboveAwesome
Joined: 24 Jul 2010
Total Posts: 1823
01 Aug 2011 09:43 PM
Yes, but I need someone else to test to see if they can hear the music or not.
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
01 Aug 2011 09:45 PM
*facedesk* did he just not explain to you?
Report Abuse
AboveAwesome is not online. AboveAwesome
Joined: 24 Jul 2010
Total Posts: 1823
03 Aug 2011 07:30 AM
My bad, I forgot to add that test mode doesn't work for me.
Report Abuse
yoyoman2 is not online. yoyoman2
Joined: 07 Mar 2009
Total Posts: 2170
03 Aug 2011 07:32 AM
hmm i think that the only way is to get only one person to get the song it the first place
Report Abuse
BloxBuilder900 is not online. BloxBuilder900
Joined: 31 Mar 2009
Total Posts: 2231
03 Aug 2011 07:32 AM
PlayerGui
Report Abuse
AboveAwesome is not online. AboveAwesome
Joined: 24 Jul 2010
Total Posts: 1823
03 Aug 2011 07:38 AM
Hm, PlayerGui? Ju sure?
Report Abuse
BloxBuilder900 is not online. BloxBuilder900
Joined: 31 Mar 2009
Total Posts: 2231
03 Aug 2011 07:39 AM
Yup.
Report Abuse
BloxBuilder900 is not online. BloxBuilder900
Joined: 31 Mar 2009
Total Posts: 2231
03 Aug 2011 07:40 AM
Wait, let me quickly check my script xP
Report Abuse
BloxBuilder900 is not online. BloxBuilder900
Joined: 31 Mar 2009
Total Posts: 2231
03 Aug 2011 07:43 AM
I made it this way:

Instanced a screengui and moved it inside the PlayerGui, then moved inside the screengui a sound and then removed everything after a short ammout of time (sound lenght)
Report Abuse
AboveAwesome is not online. AboveAwesome
Joined: 24 Jul 2010
Total Posts: 1823
03 Aug 2011 07:44 AM
One problem, since it's in the PlayerGui, it will be removed after you die. :P Can't it be in the Player?
Report Abuse
Robert00001 is not online. Robert00001
Joined: 15 May 2010
Total Posts: 7965
03 Aug 2011 07:46 AM
No, it would be heard by all players if the sound is in the player.

~ ROBERT00001 ~
~(ಠωಠ)~
Report Abuse
ZizZazZuz is not online. ZizZazZuz
Joined: 16 Jun 2008
Total Posts: 2743
03 Aug 2011 08:30 AM
Maybe if it's in the CurrentCamera?
Report Abuse
AboveAwesome is not online. AboveAwesome
Joined: 24 Jul 2010
Total Posts: 1823
03 Aug 2011 12:58 PM
Will it play?
Report Abuse
ZizZazZuz is not online. ZizZazZuz
Joined: 16 Jun 2008
Total Posts: 2743
03 Aug 2011 01:17 PM
Ohyus. I just don't know if you can hear it. :P
Report Abuse
AboveAwesome is not online. AboveAwesome
Joined: 24 Jul 2010
Total Posts: 1823
04 Aug 2011 09:22 PM
That's what I meant.
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
04 Aug 2011 09:40 PM
Use a localscript to play it.

That will play it on a direct player.
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
04 Aug 2011 09:43 PM
for example. If you want to play the sound called music when the player enters.

put this in a local script


function onPlayerEntered(player)
wait()
local sound = script.Music:clone()
sound.Parent = game.Players.LocalPlayer
wait()
sound:Play()
end

game.Players.PlayerAdded:connect(onPlayerEntered)
Report Abuse
AboveAwesome is not online. AboveAwesome
Joined: 24 Jul 2010
Total Posts: 1823
05 Aug 2011 09:28 AM
I know, but I don't know if it will be heard.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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