Hello. I'm trying to make a feature for my FPS Game for when you die you respawn. I'm making this because i have CharacterAutoLoads off. But for some reason when they die they dont respawn. I tested this with the print thing but its not running. Anyone know the fix for this? Thanks
Code: (Local Script in StarterPlayerScripts)
local charload = game.ReplicatedStorage:WaitForChild("CharLoad")
game:GetService('Players').PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid").Died:Connect(function()
charload:FireServer()
end)
end)
end)

8 comments
whats the other script?
what other script? Do you mean the remote event script?
You can use the exact same script on server side, you don't need to detect it with a localscript.
@OwoShiba that's genius
@OwoShiba Oh. I didnt know that.
@OwoShiba wait that wouldnt work. because you can only do fireserver on the client.
Then don't FireServer. Use a bindable or do whatever you were supposed to do in this script.
wait i have another genius idea