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: Help with a death script

Previous Thread :: Next Thread 
ProSuperstar64 is not online. ProSuperstar64
Joined: 20 May 2012
Total Posts: 88
01 Jan 2014 01:44 PM
I want to make a script that replaces the traditional death sound effect with another sound. Can someone help me?
Report Abuse
SpiritOfRedemption is not online. SpiritOfRedemption
Joined: 04 Oct 2012
Total Posts: 279
01 Jan 2014 01:57 PM
print("Post your script")
Report Abuse
ProSuperstar64 is not online. ProSuperstar64
Joined: 20 May 2012
Total Posts: 88
05 Jan 2014 01:50 AM
Bump
Report Abuse
blockyblox1231 is not online. blockyblox1231
Joined: 31 Aug 2010
Total Posts: 156
05 Jan 2014 01:58 AM
post the script...
Report Abuse
ProSuperstar64 is not online. ProSuperstar64
Joined: 20 May 2012
Total Posts: 88
06 Jan 2014 01:08 AM
I don't have a script.
Report Abuse
TheTrueLegitBoss is not online. TheTrueLegitBoss
Joined: 27 Oct 2013
Total Posts: 74
06 Jan 2014 01:23 AM
function deadsound(soundid,player)
local s = Instance.new("Sound",player.PlayerGui)
s.SoundId = "http://www.roblox.com/asset/?id="..soundid
s:Play()
end



game:GetService("Players").PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(chr)
local hums = char:GetChildren()
for a= 1,#hums do
if hums[a].ClassName == "Humanoid" then

hums[a].Died:connect(function()
deadsound(132319294,plr) --change soundid here
end)

end
end
end)
end)
Report Abuse
TheTrueLegitBoss is not online. TheTrueLegitBoss
Joined: 27 Oct 2013
Total Posts: 74
06 Jan 2014 01:25 AM
--I made a typo on lline 14 char is supposed to be chr I fixed it in this post





function deadsound(soundid,player)
local s = Instance.new("Sound",player.PlayerGui)
s.SoundId = "http://www.roblox.com/asset/?id="..soundid
s:Play()
end



game:GetService("Players").PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(chr)
local hums = chr:GetChildren()
for a= 1,#hums do
if hums[a].ClassName == "Humanoid" then

hums[a].Died:connect(function()
deadsound(132319294,plr)
end)

end
end
end)
end)

deadsound(132319294,game.Players.Player1)
Report Abuse
TheTrueLegitBoss is not online. TheTrueLegitBoss
Joined: 27 Oct 2013
Total Posts: 74
06 Jan 2014 01:26 AM
Ugh keep making small mistakes remove the last line deadsound(132319294,game.Players.Player1)
sorry Dx
Report Abuse
ProSuperstar64 is not online. ProSuperstar64
Joined: 20 May 2012
Total Posts: 88
08 Jan 2014 09:19 PM
I don't understand... Could you put instructons in the script like "Replace this with _____"
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