In this tutorial How to Script Respawn Sound.
- Add a Script Inside the ServerScriptService
- Rename RespawnSoundScript
local Players = game:GetService("Players")
local function handlePlayerRespawn(player)
local respawnSound = Instance.new("Sound")
respawnSound.SoundId = "rbxassetid://[Requires ID Sound]"
respawnSound.Parent = player.Character.Head
respawnSound.Volume = 2
respawnSound:Play()
respawnSound.Ended:Wait()
respawnSound:Destroy()
end
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
handlePlayerRespawn(player)
end)
end)
- You can change any volumes whatever you like.
- You can put any ID Sound for the Respawn Sound.
That’s all!
Note: You don’t need to add a sound inside the script You just have to put the ID Sound.
If you are having an issue of bugs while the script is working. Please let me know if you found a bug.
Thank you for Understanding!