@ArcticGamerTV I send the photo of my explorer.
With open death screen GUI, please.
@ArcticGamerTV here is the photo of it
Hey! Thanks. Let me give it a test rq.
This should be your script but I tottaly forgot I just could send you a place.
local Event = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent",4)
game:GetService('Players').PlayerAdded:Connect(function(player)
game:GetService("Players").CharacterAutoLoads = true
player.CharacterAdded:Connect(function(character)
game:GetService("Players").CharacterAutoLoads = false
character:WaitForChild("Humanoid").Died:Connect(function()
player.PlayerGui:FindFirstChild("DeadScreen"):FindFirstChild("Frame").Visible = true
end)
end)
end)
Event.OnServerEvent:Connect(function(player)
player:LoadCharacter()
end)
Please do send me a place that would really help.
It works very well. Thanks for the help this solved my problem! I might put up a link for the game so you can check it out.
local Event = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent",4)
No reason to have a WaitForChild()
.
There is no reason to have :FindFirstChild()
. Just indexing it would be good, also Humanoid
does load in time unless if you have a HUGE game. You are better of using :FindFirstChildWhichIsA
.