Anaminus / roblox-bug-tracker

Formerly an unofficial bug tracker for Roblox.
31 stars 24 forks source link

R15 ":LoadCharacter" Bug/Issue #814

Open Zeumus opened 7 years ago

Zeumus commented 7 years ago

I have a respawn script which uses ":LoadCharacter" but if you trigger it to a R15 character, the R15 character respawns twice for every LoadCharacter which is really annoying.. Anyone else have this problem or is it just me? It looks like when the Humanoid has died, it respawns even if :LoadCharacter respawned it anyway..

Code:

game:GetService("Players").PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) repeat wait() until char:FindFirstChild("Humanoid") char:FindFirstChild("Humanoid").Died:Connect(function() plr:LoadCharacter() end) end) end)

Note: I have already sent this to info@roblox.com

Zeumus commented 7 years ago

Turning CharacterAutoLoads off under Players does resolve it... Must be a bug because it doesn't do this with R6.. Although I had to add a plr:LoadCharacter() for when the player joined the server otherwise I couldn't see my character