| |
|
| |
|
| |
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 14 Feb 2015 09:16 AM |
game.Players.PlayerAdded:connect(function() Sound:Play() end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 14 Feb 2015 10:16 AM |
| you have to put a sound in the workspace then go to its properties and change the sound id to whatever. Then do Sound:play() |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 14 Feb 2015 01:47 PM |
| Why are you going to the scripters forum if you don't even know where Workspace is e.e |
|
|
| Report Abuse |
|
|
|
| 14 Feb 2015 01:47 PM |
http://wiki.roblox.com/index.php?title=Studio http://wiki.roblox.com/index.php?title=How_To_Build http://wiki.roblox.com/index.php?title=How_to_Script_Anything/Chapter1 http://wiki.roblox.com/index.php?title=Lua_Help |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Feb 2015 09:30 AM |
plrs = game.Players:GetPlayers()
game.Players.PlayerAdded:connect(function() if plrs >= 2 then music:Play() end end)
game.Players.PlayerRemoving:connect(function() if plrs < 2 then music:Pause() end end) |
|
|
| Report Abuse |
|
|
iPhynx
|
  |
| Joined: 25 Jul 2011 |
| Total Posts: 3271 |
|
|
| 15 Feb 2015 01:58 PM |
game.Players.PlayerAdded:connect(function() Sound:Play() end)
The ID should by in "Sound"'s properties.
Or add this to the script:
local a = instance.New("Sound") a.ID = "ID" --Not sure if the variable is called ID and replace "ID" with "number" --Also not sure if it's Instance.new, instance.New or Instance.New or instance.new. Meh. |
|
|
| Report Abuse |
|
|