RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"when the local player died make the script.parent.enabled = true"
-- local script local Players = game:GetService("Players") local function onCharacterDied(character) script.Parent.Enabled = true end local function onCharacterAdded(character) character:WaitForChild("Humanoid").Died:Connect(onCharacterDied) end local function onPlayerAdded(player) player.CharacterAdded:Connect(onCharacterAdded) if player.Character then onCharacterAdded(player.Character) end end Players.PlayerAdded:Connect(onPlayerAdded) for _, player in ipairs(Players:GetPlayers()) do onPlayerAdded(player) end