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: Specific Music Playing for Friends when entering my Game

Previous Thread :: Next Thread 
depp45 is not online. depp45
Joined: 22 Sep 2010
Total Posts: 6
26 Apr 2015 03:04 PM
Ello :3
Is there a way that when a certain friend enters my Place, specific Music like his Favorite Song Plays.

Like lets say

Friend one enters=His song

Friend 2 enters=His fav song

etc

is that possible?

I Apologize for the messy grammar but im in a bt of a hurry

Thanks already :3
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
26 Apr 2015 03:18 PM
roblox is being an idiot like ussal so here is a script that you only have to edit a little to get working

http://codepad.org/8gNj9neH
Report Abuse
depp45 is not online. depp45
Joined: 22 Sep 2010
Total Posts: 6
26 Apr 2015 03:28 PM
Since im pretty new to scribting how like where do i insert it again?
I wasnt editing places really till the scribt came an now im well pretty unknowing :p
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
26 Apr 2015 03:29 PM
in the friends, the first thing "Name" is the name, and the numbers is the ID of the sound
Report Abuse
depp45 is not online. depp45
Joined: 22 Sep 2010
Total Posts: 6
26 Apr 2015 03:31 PM
Oh dear and i find that trough the explorer than friends or how? And thanks already for the reply :)
Report Abuse
depp45 is not online. depp45
Joined: 22 Sep 2010
Total Posts: 6
26 Apr 2015 03:33 PM
Oh just make a new scrib t and i can repeat that for every friend right?
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
26 Apr 2015 03:35 PM
local friends = {
[123] = 321,
} --[Player's UserId] = SoundId,

local function playerAdded(player)
local soundId = friends[player.userId]
if soundId then
local sound = Instance.new("Sound", workspace)
sound.SoundId = "http://www.roblox.com/asset/?id=" .. soundId
sound:Play()
end
end

game.Players.PlayerAdded:connect(playerAdded)
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