local player = game.Players.LocalPlayer -- Function to kill the character local function killCharacter() if player.Character then player.Character:BreakJoints() -- Instantly kills the character end end -- Function to make the character say "Bye world" after respawning local function onCharacterAdded(character) task.wait(1) -- Wait for the character to fully load local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.DisplayName = "Bye world" -- Changes display name to "Bye world" local head = character:FindFirstChild("Head") if head then local billboardGui = Instance.new("BillboardGui") local textLabel = Instance.new("TextLabel") billboardGui.Size = UDim2.new(5, 0, 2, 0) billboardGui.StudsOffset = Vector3.new(0, 3, 0) billboardGui.Adornee = head billboardGui.Parent = head textLabel.Size = UDim2.new(1, 0, 1, 0) textLabel.Text = "Bye world" textLabel.BackgroundTransparency = 1 textLabel.TextScaled = true textLabel.Parent = billboardGui end end end -- Connect the respawn event player.CharacterAdded:Connect(onCharacterAdded) -- Kill the character after 2 seconds task.wait(2) killCharacter()