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: Sound Script Help

Previous Thread :: Next Thread 
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
09 Aug 2015 08:17 PM
I want this to continue looped even when a player dies... as of right now it doesn't. Help? Please?

game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function()
wait(1.5)
local s = Instance.new("Sound", plr:WaitForChild("PlayerGui"))
s.SoundId = "rbxassetid://your id here"
s.Looped = true
s:Play()
end)
end)
Report Abuse
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
09 Aug 2015 10:35 PM
Can someone please help? Bump.
Report Abuse
unwarranted is not online. unwarranted
Joined: 05 Jun 2009
Total Posts: 1087
09 Aug 2015 10:38 PM
http://wiki.roblox.com/index.php?title=API:Class/StarterGui/ResetPlayerGuiOnSpawn
Report Abuse
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
11 Aug 2015 01:22 AM
? Huh? I detest the wiki aha sometimes it is odd.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Aug 2015 01:25 AM
Disable that property, the name of it is kinda obvious.
Anyways the problem is that you're putting the sound in PlayerGui, which is "reset" after you respawn. Disabling that property will make it not "reset" and thus, your sound stays.
Report Abuse
galio13 is not online. galio13
Joined: 20 Jul 2011
Total Posts: 842
11 Aug 2015 01:41 AM
while true do
and an extra end
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