Hey Developer!
I just want to know how the camera position is reproduced after the load character. When Humanoid Died the connect function is printed working fine.
LocalScript
local RunService = game:GetService('RunService')
local Players = game:GetService('Players')
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
Player.CharacterAdded:Connect(function(Child)
local Character = Child
end)
RunService.RenderStepped:Connect(function()
if Character then
while not Character:FindFirstChild("Humanoid") do wait() end
Character:WaitForChild("Humanoid").Died:Connect(function()
print("You died")
end)
end
end)
But I don’t sure how to work out the camera position reset character?
Tanki Online watch this short video, just give an example:
Well, I’m not sure the camera position code from bad practice of died character, I’m sorry. Can you send me the full code or someone else, so I can’t find it yet
What is the problem you’re having? You provided the code for detecting when a player dies but what is it that you want to be fixed? If I get you correctly, you want a smooth transition of the camera between the death and the respawn point, right?