I’m not good at scripting at all, yet I’m making a game and it turned out great so far! One of the last things I need to add, is respawning in under a second (solved), and making people respawn at the spot they died, without the “uh” sound (solved). Can you help me?
Put a script in ServerScriptService for instant respawn (put a wait() if you want to extend when to load the character):
game.Players.CharacterAutoLoads = false
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
humanoid.Died:connect(function()
local Hum = character:FindFirstChild("HumanoidRootPart")
wait(1)
player:LoadCharacter()
wait(1)
player.Character:FindFirstChild("HumanoidRootPart").Position = Hum.Position
end)
end
end)
player:LoadCharacter()
end)
As for the oof sound, simply add a blank script in StarterCharacterScript and name it “Sound”, then it will not play any sound because the script is simply blank. (Make sure it’s blank)
Then your model may be broken. Is game default bodypack is R6? That’s can because a script into your gun too, I recommend to do your own gun frameworks for don’t get bugs like it.
The game default bodypack is R6, yes.
I made this gun by combining free model scripts and really don’t feel like making one myself. Because I just. can’t.
I’ll try to make things work.
Well I actually made it out!
For the script that you want the sound to not play, instead you just close the volume instead and my research said that the died sound will appear in client only, so we just set the volume from client to 0 then we fire a event to a server to make a player respawn
Local scripts (place in startercharacterscripts): wait(0.1)
local plr = game.Players.LocalPlayer
local char = plr.Character
char.HumanoidRootPart.Died.Volume = 0
I’ll give more information if you would like it, but I recommended you to try first!